Fix minor bug in ps2port.c - can't check for -1 with unsigned return type.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 18 Jan 2009 01:17:47 +0000 (20:17 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 18 Jan 2009 01:17:47 +0000 (20:17 -0500)
src/ps2port.c

index 4cd831665ebadcaecfa70654121c1b1a8e0c5fee..043d581fe2e275e217682fa4b40e36f7c8e7adf0 100644 (file)
@@ -229,7 +229,7 @@ ps2_command(int aux, int command, u8 *param)
 
     // Receive parameters (if any).
     for (i = 0; i < receive; i++) {
-        u8 data = ps2_recvbyte(aux, 0, 200);
+        int data = ps2_recvbyte(aux, 0, 200);
         if (data < 0) {
             // On a receive timeout, return the item number that the
             // transfer failed on.