casting to int to remove ptrdiff_t <-> int comparison warnings
This commit is contained in:
parent
8fca192660
commit
d5d052c806
2
stb.h
2
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; }
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user