From 40306067cb23cfbf8ce0d0c212aacf6aa209a8a1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 3 Dec 2005 07:51:04 +0000 Subject: [PATCH] 64-bit compile fix svn path=/trunk/boinc/; revision=9024 --- checkin_notes | 6 ++++++ lib/shmem.C | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 6256930340..dfcb07ef06 100755 --- a/checkin_notes +++ b/checkin_notes @@ -14178,3 +14178,9 @@ David 2 Dec 2005 cliengui/ DlgSelectComputer.cpp + +David 2 Dec 2005 + - compile fix for 64-bit machines + + lib/ + shmem.C diff --git a/lib/shmem.C b/lib/shmem.C index b4fa4b23f1..0842930152 100755 --- a/lib/shmem.C +++ b/lib/shmem.C @@ -196,7 +196,7 @@ int attach_shmem(key_t key, void** pp){ return ERR_SHMGET; } p = shmat(id, 0, 0); - if ((int)p == -1) { + if ((long)p == -1) { return ERR_SHMAT; } *pp = p;