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

master
Brian Collins ago%!(EXTRA string=5 years)
parent 8fca192660
commit d5d052c806
  1. 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; }
stb_strncpy(buffer, path+x, y-x);
stb_strncpy(buffer, path+int(x), int(y-x));
return buffer;
}

Loading…
Cancel
Save