]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
native2amiga: pass signal state as pipe pointer
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Sun, 31 May 2026 02:55:32 +0000 (19:55 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Sun, 31 May 2026 07:33:15 +0000 (00:33 -0700)
write_comm_pipe_pvoid stores a pointer-sized value. Cast the
processed-state token through void * at the call site so the helper
receives the type it expects.

native2amiga.cpp

index 630a91045200ab6ca01a5fd904ad0df392b89f9a..9aaba92d9c2d0509144c5f5cb20ea5b9438d697f 100644 (file)
@@ -105,7 +105,7 @@ void uae_Signal_with_Func(uaecptr task, uae_u32 mask, UAE_PROCESSED state)
 {
        uae_nativesem_wait();
        write_comm_pipe_int(&native2amiga_pending, 0 | 0x80, 0);
-       write_comm_pipe_pvoid(&native2amiga_pending, state, 0);
+       write_comm_pipe_pvoid(&native2amiga_pending, (void*)state, 0);
        write_comm_pipe_u32(&native2amiga_pending, task, 0);
        write_comm_pipe_int(&native2amiga_pending, mask, 1);
        do_uae_int_requested();