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:
Sven Neumann 2008-01-06 00:52:00 +00:00 committed by Sven Neumann
parent d55d95877e
commit 2531fa76f8
2 changed files with 9 additions and 4 deletions

View File

@ -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.

View File

@ -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;
}