mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 07:58:44 +02:00
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:
@@ -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';
|
||||
|
Reference in New Issue
Block a user