1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

avoid integer overflow

Actually, the whole thing is so chock full of signed vs unsigned
mixups and the assumption of all the world is 32-bit that i'm not sure
anymore that correcting them one by one is a good idea.

what would probably work best is that if someone deeply familiar with
the code (*looks in dan's general direction*) cleaned the data types
up, then legions of grunts like myself could start cleaning the rest
with relative confidence...
This commit is contained in:
Tamas TEVESZ
2008-12-27 17:45:38 +01:00
committed by Carlos R. Mafra
parent b487d56452
commit f21ce5768b

View File

@@ -393,8 +393,8 @@ wNETWMGetCurrentDesktopFromHint(WScreen *scr)
static unsigned long*
findBestIcon(unsigned long *data, unsigned long items)
{
int size, wanted, d, distance;
unsigned long i;
int size, wanted, d;
unsigned long i, distance;
unsigned long *icon;
/* better use only 75% of icon_size. For 64x64 this means 48x48