Clean up some int32/long confusion

This commit is contained in:
Randy Heit 2015-03-08 16:35:49 -05:00
parent 226de40a17
commit 6d0679cbd9
2 changed files with 2 additions and 2 deletions

View file

@ -177,7 +177,7 @@ typedef struct DUMBFILE_SYSTEM
int32 (DUMBCALLBACK *getnc)(char *ptr, int32 n, void *f); int32 (DUMBCALLBACK *getnc)(char *ptr, int32 n, void *f);
void (DUMBCALLBACK *close)(void *f); void (DUMBCALLBACK *close)(void *f);
int (DUMBCALLBACK *seek)(void *f, long n); int (DUMBCALLBACK *seek)(void *f, long n);
int32 (DUMBCALLBACK *get_size)(void *f); long (DUMBCALLBACK *get_size)(void *f);
} }
DUMBFILE_SYSTEM; DUMBFILE_SYSTEM;

View file

@ -509,7 +509,7 @@ static int DUMBCALLBACK dumbfile_mem_seek(void *f, long n)
return 0; return 0;
} }
static int32 DUMBCALLBACK dumbfile_mem_get_size(void *f) static long DUMBCALLBACK dumbfile_mem_get_size(void *f)
{ {
dumbfile_mem_status * s = (dumbfile_mem_status *) f; dumbfile_mem_status * s = (dumbfile_mem_status *) f;
return s->size; return s->size;