From d5d052c806eee2ca1f858cb58b2f062d9fa25b90 Mon Sep 17 00:00:00 2001 From: Brian Collins <60075820+bcollins526@users.noreply.github.com> Date: Sun, 26 Jan 2020 15:06:32 -0800 Subject: [PATCH] casting to int to remove ptrdiff_t <-> int comparison warnings --- stb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb.h b/stb.h index db53907..adfe33d 100644 --- a/stb.h +++ b/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; }