# HG changeset patch # User alex # Date 1022166963 0 # Node ID 0e56fbf9039ad32cbce158b5f55fdb16b62c126c # Parent c50ea0721e7884b26a20197590f3450521298987 applied 64bit patch from Ulrich Hecht diff -r c50ea0721e78 -r 0e56fbf9039a linux/shmem.c --- a/linux/shmem.c Thu May 23 14:53:11 2002 +0000 +++ b/linux/shmem.c Thu May 23 15:16:03 2002 +0000 @@ -66,7 +66,7 @@ struct shmid_ds shmemds; int shmemid; if ((shmemid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0600)) == -1) break; - if ((int)(p = shmat(shmemid, 0, 0)) == -1){ + if ((p = shmat(shmemid, 0, 0)) == (void *)-1){ mp_msg(MSGT_OSDEP, MSGL_ERR, "shmem: shmat() failed: %s\n", strerror(errno)); shmctl (shmemid, IPC_RMID, &shmemds); break;