Commit 2531fa76 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

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
parent d55d9587
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment