Fix compilation error with gcc 64 bit converting void* to int.

This commit is contained in:
David Capello 2012-07-15 00:58:46 -03:00
parent 5d26b90276
commit 07a8b18955

View File

@ -79,7 +79,7 @@ ButtonSet::ButtonSet(int w, int h, int firstSelected, ...)
icon = va_arg(ap, int); icon = va_arg(ap, int);
Item* item = new Item(c, Item* item = new Item(c,
reinterpret_cast<int>(this), (int)(reinterpret_cast<unsigned long>(this) & 0xffffffff),
x == 0 && y == 0 ? 2: 0, x == 0 && y == 0 ? 2: 0,
x == w-1 && y == 0 ? 2: 0, x == w-1 && y == 0 ? 2: 0,
x == 0 && y == h-1 ? 2: 0, x == 0 && y == h-1 ? 2: 0,