From 8e1c30007dc96eca0b9adeed2ed69da533b6353c Mon Sep 17 00:00:00 2001 From: gpoirier Date: Tue, 13 Jun 2006 08:00:48 +0000 Subject: Fix a condition as suggested by Rich. Although what was in the code was working in practice it was not formally correct. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18695 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_s3fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/vo_s3fb.c b/libvo/vo_s3fb.c index 3a154a73d1..b64cb9ad44 100644 --- a/libvo/vo_s3fb.c +++ b/libvo/vo_s3fb.c @@ -270,7 +270,7 @@ static int preinit(const char *arg) 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); -- cgit v1.2.3