From: Michael Gernoth Date: Tue, 8 Sep 2009 07:07:29 +0000 (+0200) Subject: Fix the last warning on x86_64 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/commitdiff_plain/db5f628373a82f026c7b4b374a8e2d0624187c48?hp=6f214ac0ef5899987197c2e4c9baa0b51a04c197 Fix the last warning on x86_64 --- 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",