aboutsummaryrefslogtreecommitdiffstats
path: root/src/ps2port.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-01-17 20:17:47 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-01-17 20:17:47 -0500
commitf5092375885d17fcfab6f94cf6feed8c049c36bc (patch)
tree6684b17fe2b401b6c76dd977b2913d059b7ebef0 /src/ps2port.c
parentdf2c19ab31b5b9e52f30452d82f0bdd9b89db111 (diff)
downloadseabios-f5092375885d17fcfab6f94cf6feed8c049c36bc.tar.gz
Fix minor bug in ps2port.c - can't check for -1 with unsigned return type.
Diffstat (limited to 'src/ps2port.c')
-rw-r--r--src/ps2port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ps2port.c b/src/ps2port.c
index 4cd83166..043d581f 100644
--- a/src/ps2port.c
+++ b/src/ps2port.c
@@ -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.