From db5f628373a82f026c7b4b374a8e2d0624187c48 Mon Sep 17 00:00:00 2001
From: Michael Gernoth <michael@gernoth.net>
Date: Tue, 8 Sep 2009 09:07:29 +0200
Subject: [PATCH] Fix the last warning on x86_64

---
 src/sim/w_x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sim/w_x.c b/src/sim/w_x.c
index b7cc9e9..b2a1c8b 100644
--- a/src/sim/w_x.c
+++ b/src/sim/w_x.c
@@ -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",
-- 
2.39.5