summaryrefslogtreecommitdiff
path: root/src/bin/common/shmfile.h
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2014-10-28 10:03:11 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2014-10-31 12:59:51 +0100
commit17d6bed1b84dd0540f7693184110406c220233ae (patch)
tree17b055a442894bbd79bdbf7b0ba14de8bbdae1c7 /src/bin/common/shmfile.h
parent53a5cbb47608adcdf574960b26eec8c3039df244 (diff)
downloadevas_generic_loaders-17d6bed1b84dd0540f7693184110406c220233ae.tar.gz
raw: Make sure to keep the correct sign
unsigned short * unsigned short = int, so for large image sizes the calculation will be wrong. Fixes CID 63746 and CID 63747 @fix
Diffstat (limited to 'src/bin/common/shmfile.h')
-rw-r--r--src/bin/common/shmfile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/common/shmfile.h b/src/bin/common/shmfile.h
index b41c9cb..f70a8fd 100644
--- a/src/bin/common/shmfile.h
+++ b/src/bin/common/shmfile.h
@@ -10,7 +10,7 @@ extern int shm_size;
extern void *shm_addr;
extern char *shmfile;
-void shm_alloc (int dsize);
+void shm_alloc (unsigned long dsize);
void shm_free (void);
#ifdef __cplusplus