tests/patterntest.c (test_compilation) A couple of 64-bit printf format

Tue Jun 11 17:03:39 2002  Owen Taylor  <otaylor@redhat.com>

        * tests/patterntest.c (test_compilation)
        * glib/gmem.c (profiler_try_realloc): A couple
        of 64-bit printf format fix from George Lebl.

        * glib/gconvert.c (open_converter): Fix gsize/gint
        mixup for g_iconv() arguments.
This commit is contained in:
Owen Taylor 2002-06-11 21:04:50 +00:00 committed by Owen Taylor
parent f9ec83b2fa
commit 36adc08bfd
10 changed files with 67 additions and 4 deletions

View File

@ -1,3 +1,12 @@
Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com>
* tests/patterntest.c (test_compilation)
* glib/gmem.c (profiler_try_realloc): A couple
of 64-bit printf format fix from George Lebl.
* glib/gconvert.c (open_converter): Fix gsize/gint
mixup for g_iconv() arguments.
2002-06-03 Matthias Clasen <maclas@gmx.de>
* glib/gwin32.c (g_win32_get_package_installation_directory):

View File

@ -1,3 +1,12 @@
Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com>
* tests/patterntest.c (test_compilation)
* glib/gmem.c (profiler_try_realloc): A couple
of 64-bit printf format fix from George Lebl.
* glib/gconvert.c (open_converter): Fix gsize/gint
mixup for g_iconv() arguments.
2002-06-03 Matthias Clasen <maclas@gmx.de>
* glib/gwin32.c (g_win32_get_package_installation_directory):

View File

@ -1,3 +1,12 @@
Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com>
* tests/patterntest.c (test_compilation)
* glib/gmem.c (profiler_try_realloc): A couple
of 64-bit printf format fix from George Lebl.
* glib/gconvert.c (open_converter): Fix gsize/gint
mixup for g_iconv() arguments.
2002-06-03 Matthias Clasen <maclas@gmx.de>
* glib/gwin32.c (g_win32_get_package_installation_directory):

View File

@ -1,3 +1,12 @@
Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com>
* tests/patterntest.c (test_compilation)
* glib/gmem.c (profiler_try_realloc): A couple
of 64-bit printf format fix from George Lebl.
* glib/gconvert.c (open_converter): Fix gsize/gint
mixup for g_iconv() arguments.
2002-06-03 Matthias Clasen <maclas@gmx.de>
* glib/gwin32.c (g_win32_get_package_installation_directory):

View File

@ -1,3 +1,12 @@
Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com>
* tests/patterntest.c (test_compilation)
* glib/gmem.c (profiler_try_realloc): A couple
of 64-bit printf format fix from George Lebl.
* glib/gconvert.c (open_converter): Fix gsize/gint
mixup for g_iconv() arguments.
2002-06-03 Matthias Clasen <maclas@gmx.de>
* glib/gwin32.c (g_win32_get_package_installation_directory):

View File

@ -1,3 +1,12 @@
Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com>
* tests/patterntest.c (test_compilation)
* glib/gmem.c (profiler_try_realloc): A couple
of 64-bit printf format fix from George Lebl.
* glib/gconvert.c (open_converter): Fix gsize/gint
mixup for g_iconv() arguments.
2002-06-03 Matthias Clasen <maclas@gmx.de>
* glib/gwin32.c (g_win32_get_package_installation_directory):

View File

@ -1,3 +1,12 @@
Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com>
* tests/patterntest.c (test_compilation)
* glib/gmem.c (profiler_try_realloc): A couple
of 64-bit printf format fix from George Lebl.
* glib/gconvert.c (open_converter): Fix gsize/gint
mixup for g_iconv() arguments.
2002-06-03 Matthias Clasen <maclas@gmx.de>
* glib/gwin32.c (g_win32_get_package_installation_directory):

View File

@ -358,9 +358,9 @@ open_converter (const gchar *to_codeset,
* NULL for anything but inbuf; work around that. (NULL outbuf
* or NULL *outbuf is allowed by Unix98.)
*/
gint inbytes_left = 0;
gsize inbytes_left = 0;
gchar *outbuf = NULL;
gint outbytes_left = 0;
gsize outbytes_left = 0;
cd = bucket->cd;
bucket->used = TRUE;

View File

@ -541,7 +541,7 @@ profiler_try_realloc (gpointer mem,
if (mem && p[0]) /* free count */
{
g_warning ("realloc(%p, %u): memory has been freed %lu times already", p + 2, n_bytes, p[0]);
g_warning ("realloc(%p, %lu): memory has been freed %lu times already", p + 2, (gulong)n_bytes, p[0]);
profiler_log (PROFILER_ALLOC | PROFILER_RELOC, n_bytes, FALSE);
return NULL;

View File

@ -105,7 +105,7 @@ test_compilation (gchar *src,
{
g_print ("failed \t(pattern_length: %d, expected %d)\n",
spec->pattern_length,
strlen (spec->pattern));
(gint)strlen (spec->pattern));
return FALSE;
}