summaryrefslogtreecommitdiff
path: root/sys/src/games
diff options
context:
space:
mode:
authoraiju <aiju@phicode.de>2017-02-12 00:38:17 +0100
committeraiju <aiju@phicode.de>2017-02-12 00:38:17 +0100
commitfe1e95d6d80a1d5185198072d794457e7c94c511 (patch)
treed2250c3f5a8fd6b693878805d1e6386a4a9065b3 /sys/src/games
parent6176b557596bcca7469224ded3f2384d3a2773db (diff)
games/gb: timer array should be unsigned (thanks qwx)
Diffstat (limited to 'sys/src/games')
-rw-r--r--sys/src/games/gb/gb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/games/gb/gb.c b/sys/src/games/gb/gb.c
index 8db12f213..4a021f7e4 100644
--- a/sys/src/games/gb/gb.c
+++ b/sys/src/games/gb/gb.c
@@ -40,7 +40,7 @@ writeback(void)
}
void
-timerload(char *buf)
+timerload(uchar *buf)
{
timer.ns = buf[0] | buf[1] << 8 | buf[2] << 16 | buf[3] << 24 | (uvlong)buf[4] << 32 | (uvlong)buf[5] << 40 | (uvlong)buf[6] << 48LL | (uvlong)buf[7] << 56LL;
timer.sec = buf[8];
@@ -56,7 +56,7 @@ timerload(char *buf)
}
void
-timersave(char *buf)
+timersave(uchar *buf)
{
buf[0] = timer.ns;
buf[1] = timer.ns >> 8;
@@ -81,7 +81,7 @@ timersave(char *buf)
void
flushback(void)
{
- char buf[TIMERSIZ];
+ uchar buf[TIMERSIZ];
if(savefd >= 0){
pwrite(savefd, back, nback, 0);
@@ -95,7 +95,7 @@ void
loadsave(char *file)
{
char *buf, *p;
- char tim[TIMERSIZ];
+ uchar tim[TIMERSIZ];
buf = emalloc(strlen(file) + 4);
strcpy(buf, file);