summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_s3fb.c2
1 files changed, 1 insertions, 1 deletions
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);