summaryrefslogtreecommitdiff
path: root/src/slot_machine.c
diff options
context:
space:
mode:
authorPokeCodec <doremylover456@gmail.com>2020-07-19 15:57:20 -0400
committerPokeCodec <doremylover456@gmail.com>2020-07-24 22:18:57 -0400
commitc5aa91741b4ba674e0eec574b33a6fb78b349b7a (patch)
tree769263133a1e7c895b2be39089466fe5fc1755e1 /src/slot_machine.c
parent69a04f88f4411d9b0db67aa2c42e17e4bfb0dd0e (diff)
Change signedness and add casts to avoid implicit conversion warnings
Diffstat (limited to 'src/slot_machine.c')
-rw-r--r--src/slot_machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slot_machine.c b/src/slot_machine.c
index d1cb05b18..6557e8cf4 100644
--- a/src/slot_machine.c
+++ b/src/slot_machine.c
@@ -775,7 +775,7 @@ static void PlaySlotMachine_Internal(u8 slotMachineIndex, MainCallback cb)
{
struct Task *task = &gTasks[CreateTask(SlotMachineDummyTask, 0xFF)];
task->data[0] = slotMachineIndex;
- StoreWordInTwoHalfwords(task->data + 1, (intptr_t)cb);
+ StoreWordInTwoHalfwords((u16 *)(task->data + 1), (intptr_t)cb);
}