]> git.zerfleddert.de Git - micropolis/commitdiff
Fix the last warning on x86_64
authorMichael Gernoth <michael@gernoth.net>
Tue, 8 Sep 2009 07:07:29 +0000 (09:07 +0200)
committerMichael Gernoth <michael@gernoth.net>
Tue, 8 Sep 2009 07:07:29 +0000 (09:07 +0200)
src/sim/w_x.c

index b7cc9e9b0a8d62b2404b1d74bb0b0a2dd89f5191..b2a1c8b37d8cd9f0933eaa04ce52ece1258fa8e8 100644 (file)
@@ -906,7 +906,7 @@ DoResizeView(SimView *view, int w, int h)
     }
 
     view->data = (unsigned char *)shmat(view->shminfo->shmid, 0, 0);
     }
 
     view->data = (unsigned char *)shmat(view->shminfo->shmid, 0, 0);
-    if ((int)view->data == -1) {
+    if ((char*)view->data == (char*)-1) {
       perror("shmat");
       fprintf(stderr,
              "Darn, Micropolis can't find any memory to share with display \"%s\".\n",
       perror("shmat");
       fprintf(stderr,
              "Darn, Micropolis can't find any memory to share with display \"%s\".\n",
Impressum, Datenschutz