]> git.zerfleddert.de Git - micropolis/blobdiff - src/sim/w_x.c
Fix the last warning on x86_64
[micropolis] / 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);
-    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",
Impressum, Datenschutz