mirror of https://github.com/GNOME/gimp.git
use "%lld" when printing or parsing file sizes because AC_SYS_LARGEFILE
2002-05-27 Michael Natterer <mitch@gimp.org> * app/core/gimpimagefile.c: use "%lld" when printing or parsing file sizes because AC_SYS_LARGEFILE makes off_t a long long.
This commit is contained in:
parent
159b6ca115
commit
d6ce8fce69
|
@ -1,3 +1,8 @@
|
|||
2002-05-27 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpimagefile.c: use "%lld" when printing or parsing
|
||||
file sizes because AC_SYS_LARGEFILE makes off_t a long long.
|
||||
|
||||
2002-05-27 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* HACKING
|
||||
|
|
|
@ -436,10 +436,10 @@ gimp_imagefile_save_fail_thumb (GimpImagefile *imagefile,
|
|||
return;
|
||||
|
||||
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 1, 1);
|
||||
|
||||
|
||||
desc = g_strdup_printf ("Thumbnail failure for %s", uri);
|
||||
t_str = g_strdup_printf ("%ld", image_mtime);
|
||||
s_str = g_strdup_printf ("%ld", image_size);
|
||||
t_str = g_strdup_printf ("%ld", image_mtime);
|
||||
s_str = g_strdup_printf ("%lld", image_size);
|
||||
|
||||
if (! gdk_pixbuf_save (pixbuf, thumb_name, "png", &error,
|
||||
TAG_DESCRIPTION, desc,
|
||||
|
@ -828,7 +828,7 @@ gimp_imagefile_read_png_thumb (GimpImagefile *imagefile,
|
|||
goto cleanup;
|
||||
|
||||
option = gdk_pixbuf_get_option (pixbuf, TAG_THUMB_SIZE);
|
||||
if (!option || sscanf (option, "%ld", &thumb_image_size) != 1)
|
||||
if (!option || sscanf (option, "%lld", &thumb_image_size) != 1)
|
||||
goto cleanup;
|
||||
|
||||
if (thumb_image_mtime == imagefile->image_mtime &&
|
||||
|
@ -940,11 +940,11 @@ gimp_imagefile_save_png_thumb (GimpImagefile *imagefile,
|
|||
type_str = g_enum_get_value (enum_class, type)->value_nick;
|
||||
|
||||
desc = g_strdup_printf ("Thumbnail of %s", uri);
|
||||
t_str = g_strdup_printf ("%ld", image_mtime);
|
||||
w_str = g_strdup_printf ("%d", gimage->width);
|
||||
h_str = g_strdup_printf ("%d", gimage->height);
|
||||
s_str = g_strdup_printf ("%ld", image_size);
|
||||
l_str = g_strdup_printf ("%d", gimage->layers->num_children);
|
||||
t_str = g_strdup_printf ("%ld", image_mtime);
|
||||
w_str = g_strdup_printf ("%d", gimage->width);
|
||||
h_str = g_strdup_printf ("%d", gimage->height);
|
||||
s_str = g_strdup_printf ("%lld", image_size);
|
||||
l_str = g_strdup_printf ("%d", gimage->layers->num_children);
|
||||
|
||||
success = gdk_pixbuf_save (pixbuf, thumb_name, "png", &error,
|
||||
TAG_DESCRIPTION, desc,
|
||||
|
|
Loading…
Reference in New Issue