Explorar o código

casting to int to remove ptrdiff_t <-> int comparison warnings

Brian Collins %!s(int64=5) %!d(string=hai) anos
pai
achega
d5d052c806
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      stb.h

+ 1 - 1
stb.h

@@ -2457,7 +2457,7 @@ static char *stb__splitpath_raw(char *buffer, char *path, int flag)
    }
 
    if (len) { stb_p_strcpy_s(buffer, sizeof(buffer), "./"); return buffer; }
-   stb_strncpy(buffer, path+x, y-x);
+   stb_strncpy(buffer, path+int(x), int(y-x));
    return buffer;
 }