mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 12:10:48 +00:00
Fixed a format string and added a cast to some pointer arithmetic. This
fix compile problems on non-intel archs.
This commit is contained in:
parent
d4b1c74866
commit
acbd838b09
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ GIB_String_Findsub_f (void)
|
|||
else if (pos >= strlen (haystack))
|
||||
GIB_Return ("-1");
|
||||
else if ((res = strstr(haystack+pos, GIB_Argv(2))))
|
||||
GIB_Return (va("%i", res - haystack));
|
||||
GIB_Return (va("%lu", (unsigned long int)(res - haystack)));
|
||||
else
|
||||
GIB_Return ("-1");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue