goat3d

diff libs/openctm/openctm.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/openctm.c	Sun May 18 06:20:20 2014 +0300
     1.2 +++ b/libs/openctm/openctm.c	Sun May 18 19:58:47 2014 +0300
     1.3 @@ -913,7 +913,7 @@
     1.4    // Get length of string (if empty, do nothing)
     1.5    if(!aFileComment)
     1.6      return;
     1.7 -  len = strlen(aFileComment);
     1.8 +  len = (int)strlen(aFileComment);
     1.9    if(!len)
    1.10      return;
    1.11  
    1.12 @@ -1005,7 +1005,7 @@
    1.13    if(aName)
    1.14    {
    1.15      // Get length of string (if empty, do nothing)
    1.16 -    len = strlen(aName);
    1.17 +    len = (CTMuint)strlen(aName);
    1.18      if(len)
    1.19      {
    1.20        // Copy the string
    1.21 @@ -1024,7 +1024,7 @@
    1.22    if(aFileName)
    1.23    {
    1.24      // Get length of string (if empty, do nothing)
    1.25 -    len = strlen(aFileName);
    1.26 +    len = (CTMuint)strlen(aFileName);
    1.27      if(len)
    1.28      {
    1.29        // Copy the string