cast the string size to gulong and use %lu for printing to avoid 64bit

Sat Sep 29 02:33:14 2001  George Lebl <jirka@5z.com>

	* tests/testglib.c (main): cast the string size to gulong and use %lu
	  for printing to avoid 64bit issues

	* glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument
	  to gsize instead guint.
This commit is contained in:
George Lebl
2001-09-29 09:42:20 +00:00
committed by George Lebl
parent bafb616c35
commit 46aae08e8d
11 changed files with 67 additions and 3 deletions

View File

@@ -823,7 +823,7 @@ main (int argc,
10, 666, 15, 15, 666.666666666, 666.666666666);
#endif
g_print ("string2 length = %d...\n", string2->len);
g_print ("string2 length = %lu...\n", (gulong)string2->len);
string2->str[70] = '\0';
g_print ("first 70 chars:\n%s\n", string2->str);
string2->str[141] = '\0';