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

This commit is contained in:
Brian Collins 2020-01-26 15:06:32 -08:00
parent 8fca192660
commit d5d052c806

2
stb.h
View File

@ -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; } 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; return buffer;
} }