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:
Brian Koropoff 2002-11-17 00:12:14 +00:00
parent d4b1c74866
commit acbd838b09

View file

@ -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");
}