this should work on 64bit system as well.

2003-04-04  Sven Neumann  <sven@gimp.org>

        * libgimpbase/gimputils.c (gimp_memsize_to_string): this should
        work on 64bit system as well.
This commit is contained in:
Sven Neumann 2003-04-04 15:43:18 +00:00 committed by Sven Neumann
parent 93b50614b3
commit 3645cb7159
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-04-04 Sven Neumann <sven@gimp.org>
* libgimpbase/gimputils.c (gimp_memsize_to_string): this should
work on 64bit system as well.
2003-04-04 Michael Natterer <mitch@gimp.org>
* libgimpbase/gimplimits.h: reduced GIMP_MAX_IMAGE_SIZE to 2^18.

View File

@ -131,10 +131,12 @@ gimp_memsize_to_string (gulong memsize)
}
else if (memsize < 1024 * 1024 * 10)
{
return g_strdup_printf (_("%.2f MB"), (gdouble) memsize / 1024.0 / 1024.0);
memsize /= 1024;
return g_strdup_printf (_("%.2f MB"), (gdouble) memsize / 1024.0);
}
else
{
return g_strdup_printf (_("%.1f MB"), (gdouble) memsize / 1024.0 / 1024.0);
memsize /= 1024;
return g_strdup_printf (_("%.1f MB"), (gdouble) memsize / 1024.0);
}
}