From b75c7f6bc4a7245ab88fca760ad303df7e5da7ef Mon Sep 17 00:00:00 2001 From: Max Lingua Date: Thu, 9 Jan 2014 21:22:07 -0500 Subject: [PATCH] PS2: added missing casts --- backends/platform/ps2/cd.c | 4 ++-- backends/platform/ps2/rpckbd.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backends/platform/ps2/cd.c b/backends/platform/ps2/cd.c index cd44b3d0341..1c54174c1dd 100644 --- a/backends/platform/ps2/cd.c +++ b/backends/platform/ps2/cd.c @@ -31,7 +31,7 @@ int cdvdInit(int mode) cdvdCd.server = NULL; do { - if ((ret = SifBindRpc(&cdvdCd, CDVD_INIT_BIND_RPC, 0)) < 0) { + if ((ret = SifBindRpc(&cdvdCd, (signed)CDVD_INIT_BIND_RPC, 0)) < 0) { return -1; } if (!cdvdCd.server) { @@ -40,7 +40,7 @@ int cdvdInit(int mode) } while(!cdvdCd.server); - pkt = sendBuffer; + pkt = (unsigned char *)sendBuffer; PUSHDATA( int, pkt, mode, i); pkt += i; len += i; diff --git a/backends/platform/ps2/rpckbd.c b/backends/platform/ps2/rpckbd.c index 0bb45208f50..e7975ab484d 100644 --- a/backends/platform/ps2/rpckbd.c +++ b/backends/platform/ps2/rpckbd.c @@ -17,7 +17,7 @@ #include #include "backends/platform/ps2/rpckbd.h" -static int curr_readmode = PS2KBD_READMODE_NORMAL; +static unsigned int curr_readmode = PS2KBD_READMODE_NORMAL; static int kbdRpcSema = -1; static int kbdInitialized = 0;