diff --git a/ChangeLog b/ChangeLog index 4242e8a9af..46f8727ca1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-06 Sven Neumann + + * libgimpwidgets/gimpmemsizeentry.c: use G_GUINT64_CONSTANT() + instead of a cast. + 2008-01-06 Sven Neumann * plug-ins/common/tile.c (tile): update the progress less often. diff --git a/libgimpwidgets/gimpmemsizeentry.c b/libgimpwidgets/gimpmemsizeentry.c index 97feec9033..a44abcee6e 100644 --- a/libgimpwidgets/gimpmemsizeentry.c +++ b/libgimpwidgets/gimpmemsizeentry.c @@ -172,8 +172,8 @@ gimp_memsize_entry_new (guint64 value, for (shift = 30; shift > 10; shift -= 10) { - if (value > ((guint64) 1 << shift) && - value % ((guint64) 1 << shift) == 0) + if (value > (G_GUINT64_CONSTANT (1) << shift) && + value % (G_GUINT64_CONSTANT (1) << shift) == 0) break; } @@ -237,8 +237,8 @@ gimp_memsize_entry_set_value (GimpMemsizeEntry *entry, for (shift = 30; shift > 10; shift -= 10) { - if (value > ((guint64) 1 << shift) && - value % ((guint64) 1 << shift) == 0) + if (value > (G_GUINT64_CONSTANT (1) << shift) && + value % (G_GUINT64_CONSTANT (1) << shift) == 0) break; }