Make buffer sizes unsigned.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 07 May 2011 03:58:34 -0400
changeset 1 90603fda7444
parent 0 8daba3cc1efb
child 2 3c16e81ac188
Make buffer sizes unsigned.
mojodds.c
--- a/mojodds.c	Sat May 07 03:32:54 2011 -0400
+++ b/mojodds.c	Sat May 07 03:58:34 2011 -0400
@@ -173,8 +173,8 @@
 
 
 // !!! FIXME: improve the crap out of this API later.
-int MOJODDS_getTexture(const void *_ptr, const long _len,
-                       const void **_tex, long *_texlen, int *_dxtver)
+int MOJODDS_getTexture(const void *_ptr, const unsigned long _len,
+                       const void **_tex, unsigned long *_texlen, int *_dxtver)
 {
     size_t len = (size_t) _len;
     const uint8 *ptr = (const uint8 *) _ptr;