--- boinc_public/lib/shmem.C.orig 2005-11-11 02:46:07.000000000 +0100 +++ boinc_public/lib/shmem.C.orig 2005-11-11 02:46:20.000000000 +0100 @@ -128,7 +128,7 @@ return ERR_SHMGET; } p = shmat(id, 0, 0); - if ((int)p == -1) { + if ((long)p == -1) { return ERR_SHMAT; } *pp = p;