cast memsize to a guint instead of format change. Problem perhaps if

2003-01-05  Manish Singh  <yosh@gimp.org>

        * app/core/gimpobject.c: cast memsize to a guint instead of format
        change. Problem perhaps if get_size really is > 4 GB?
This commit is contained in:
Manish Singh 2003-01-05 22:24:07 +00:00 committed by Manish Singh
parent 1a44f2126c
commit 82c16db50d
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-01-05 Manish Singh <yosh@gimp.org>
* app/core/gimpobject.c: cast memsize to a guint instead of format
change. Problem perhaps if get_size really is > 4 GB?
2003-01-05 Manish Singh <yosh@gimp.org>
* many files in app, modules and libgimp*: cleanup, removed unecessary

View File

@ -290,11 +290,12 @@ gimp_object_get_memsize (GimpObject *object)
indent_buf[i] = '\0';
object_size = g_strdup_printf ("%s%s \"%s\": %lu\n",
/* FIXME: are we going to ever have > 4 GB objects?? */
object_size = g_strdup_printf ("%s%s \"%s\": %u\n",
indent_buf,
g_type_name (G_TYPE_FROM_INSTANCE (object)),
object->name,
memsize);
(guint) memsize);
aggregation_tree = g_list_prepend (aggregation_tree, object_size);

View File

@ -295,11 +295,12 @@ gimp_object_get_memsize (GimpObject *object)
indent_buf[i] = '\0';
object_size = g_strdup_printf ("%s%s \"%s\": %lu\n",
/* FIXME: are we going to ever have > 4 GB objects?? */
object_size = g_strdup_printf ("%s%s \"%s\": %u\n",
indent_buf,
g_type_name (G_TYPE_FROM_INSTANCE (object)),
object->name,
memsize);
(guint) memsize);
aggregation_tree = g_list_prepend (aggregation_tree, object_size);