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:

committed by
Sven Neumann

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>
|
2008-01-06 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* plug-ins/common/tile.c (tile): update the progress less often.
|
* 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)
|
for (shift = 30; shift > 10; shift -= 10)
|
||||||
{
|
{
|
||||||
if (value > ((guint64) 1 << shift) &&
|
if (value > (G_GUINT64_CONSTANT (1) << shift) &&
|
||||||
value % ((guint64) 1 << shift) == 0)
|
value % (G_GUINT64_CONSTANT (1) << shift) == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -237,8 +237,8 @@ gimp_memsize_entry_set_value (GimpMemsizeEntry *entry,
|
|||||||
|
|
||||||
for (shift = 30; shift > 10; shift -= 10)
|
for (shift = 30; shift > 10; shift -= 10)
|
||||||
{
|
{
|
||||||
if (value > ((guint64) 1 << shift) &&
|
if (value > (G_GUINT64_CONSTANT (1) << shift) &&
|
||||||
value % ((guint64) 1 << shift) == 0)
|
value % (G_GUINT64_CONSTANT (1) << shift) == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user