goat3d

diff libs/openctm/stream.c @ 94:21319e71117f

[libs] fixed a few warnings in openctm [goatview] starting animation loading
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 18 May 2014 19:58:47 +0300
parents 188c697b3b49
children
line diff
     1.1 --- a/libs/openctm/stream.c	Sun May 18 06:20:20 2014 +0300
     1.2 +++ b/libs/openctm/stream.c	Sun May 18 19:58:47 2014 +0300
     1.3 @@ -155,7 +155,7 @@
     1.4  
     1.5    // Get string length
     1.6    if(aValue)
     1.7 -    len = strlen(aValue);
     1.8 +    len = (CTMuint)strlen(aValue);
     1.9    else
    1.10      len = 0;
    1.11  
    1.12 @@ -194,7 +194,7 @@
    1.13      self->mError = CTM_OUT_OF_MEMORY;
    1.14      return CTM_FALSE;
    1.15    }
    1.16 -  _ctmStreamRead(self, (void *) packed, packedSize);
    1.17 +  _ctmStreamRead(self, (void *) packed, (CTMuint)packedSize);
    1.18  
    1.19    // Allocate memory for interleaved array
    1.20    tmp = (unsigned char *) malloc(aCount * aSize * 4);
    1.21 @@ -374,7 +374,7 @@
    1.22      self->mError = CTM_OUT_OF_MEMORY;
    1.23      return CTM_FALSE;
    1.24    }
    1.25 -  _ctmStreamRead(self, (void *) packed, packedSize);
    1.26 +  _ctmStreamRead(self, (void *) packed, (CTMuint)packedSize);
    1.27  
    1.28    // Allocate memory for interleaved array
    1.29    tmp = (unsigned char *) malloc(aCount * aSize * 4);