mirror of https://github.com/GNOME/gimp.git
use G_GUINT64_CONSTANT() instead of a cast.
2008-01-06 Sven Neumann <sven@gimp.org> * libgimpwidgets/gimpmemsizeentry.c: use G_GUINT64_CONSTANT() instead of a cast. svn path=/trunk/; revision=24542
This commit is contained in:
parent
d55d95877e
commit
2531fa76f8
|
@ -1,3 +1,8 @@
|
|||
2008-01-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpwidgets/gimpmemsizeentry.c: use G_GUINT64_CONSTANT()
|
||||
instead of a cast.
|
||||
|
||||
2008-01-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/tile.c (tile): update the progress less often.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue