From ecb11010efc404b1954afbd3021b0abb1271d1c0 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 25 Oct 2014 03:32:57 +0000 Subject: [PATCH] Fix warnings in texcache git-svn-id: https://svn.eduke32.com/eduke32@4669 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/texcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/texcache.c b/polymer/eduke32/build/src/texcache.c index bf9df7ffc..9dd2a7b54 100644 --- a/polymer/eduke32/build/src/texcache.c +++ b/polymer/eduke32/build/src/texcache.c @@ -213,7 +213,7 @@ static inline void texcache_clearmemcache(void) void texcache_syncmemcache(void) { - size_t len = Bfilelength(texcache.filehandle); + int32_t len = Bfilelength(texcache.filehandle); if (!texcache.memcache.ptr || texcache.filehandle == -1 || len <= (int32_t)texcache.memcache.size) return; @@ -408,7 +408,7 @@ int32_t texcache_readdata(void *dest, int32_t len) texcache.filepos += len; - if (texcache.memcache.ptr && texcache.memcache.size >= (bsize_t)ocachepos+len) + if (texcache.memcache.ptr && texcache.memcache.size >= ocachepos+len) { // initprintf("using memcache!\n"); Bmemcpy(dest, texcache.memcache.ptr+ocachepos, len);