Skip to content

Commit

Permalink
Make buffer sizes unsigned.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 7, 2011
1 parent 5f561a6 commit deae78e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mojodds.c
Expand Up @@ -173,8 +173,8 @@ static int parse_dds(MOJODDS_Header *header, const uint8 **ptr, size_t *len)


// !!! 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;
Expand Down

0 comments on commit deae78e

Please sign in to comment.