Win: Eliminate VS2013 compiler warnings in Glave source.
authorIan Elliott <ian@LunarG.com>
Wed, 4 Feb 2015 22:05:38 +0000 (15:05 -0700)
committerIan Elliott <ian@lunarg.com>
Thu, 5 Feb 2015 18:06:32 +0000 (11:06 -0700)
tools/glave/src/glvcommon/glv_settings.c

index f5fd733..075be9d 100644 (file)
@@ -76,7 +76,7 @@ BOOL glv_SettingInfo_parse_value(glv_SettingInfo* pSetting, const char* arg)
 #if defined(PLATFORM_LINUX)
             bTrue = (strncasecmp(arg, "true", 4) == 0);
 #elif defined(PLATFORM_WINDOWS)
-            bTrue = (strnicmp(arg, "true", 4) == 0);
+            bTrue = (_strnicmp(arg, "true", 4) == 0);
 #endif
             *pSetting->Data.pBool = bTrue;
         }
@@ -398,7 +398,8 @@ int glv_SettingGroup_Load_from_file(FILE* pFile, glv_SettingGroup** ppSettingGro
             {
                 // a group was found!
                 unsigned int i;
-                char* pGroupName = glv_allocate_and_copy_n(pOpenBracket + 1, pCloseBracket - pOpenBracket - 1);
+                char* pGroupName = glv_allocate_and_copy_n(pOpenBracket + 1,
+                                                           (int) (pCloseBracket - pOpenBracket - 1));
 
                 // Check to see if we already have this group
                 pCurGroup = NULL;