Search
lxdream.org :: lxdream/src/eventq.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/eventq.c
changeset 674:377d987db8f2
prev586:2a3ba82cf243
next730:a0f02e769c2e
author nkeynes
date Mon May 26 10:42:18 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Fix save states for x86-64, and ensure compatibility between 32-bit and 64-bit versions
file annotate diff log raw
1.1 --- a/src/eventq.c Tue Jan 15 20:50:23 2008 +0000
1.2 +++ b/src/eventq.c Mon May 26 10:42:18 2008 +0000
1.3 @@ -255,7 +255,7 @@
1.4
1.5 void event_save_state( FILE *f )
1.6 {
1.7 - int id, i;
1.8 + int32_t id, i;
1.9 id = event_head == NULL ? -1 : event_head->id;
1.10 fwrite( &id, sizeof(id), 1, f );
1.11 id = long_event_head == NULL ? -1 : long_event_head->id;
1.12 @@ -270,7 +270,7 @@
1.13
1.14 int event_load_state( FILE *f )
1.15 {
1.16 - int id, i;
1.17 + int32_t id, i;
1.18 fread( &id, sizeof(id), 1, f );
1.19 event_head = id == -1 ? NULL : &events[id];
1.20 fread( &id, sizeof(id), 1, f );
.