changeset 18692:9a3d768cb8da

Fix a condition as suggested by Rich. Although what was in the code was working in practice it was not formally correct.
author gpoirier
date Tue, 13 Jun 2006 08:00:48 +0000
parents b08913965b6a
children a4a6b2cf5022
files libvo/vo_s3fb.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_s3fb.c	Tue Jun 13 07:58:06 2006 +0000
+++ b/libvo/vo_s3fb.c	Tue Jun 13 08:00:48 2006 +0000
@@ -270,7 +270,7 @@
   smem = mmap(0, fb_finfo.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
   sreg = fb_finfo.smem_start;
 
-  if((long)smem == -1) {
+  if(smem == (void *)-1) {
     mp_msg(MSGT_VO, MSGL_FATAL, "s3fb: Couldn't map memory areas: %s\n", strerror(errno));
     smem = NULL;
     close(fd);