WINGs: fix non-portable int conversion for printf in font panel size handling
commitae9cb306ef6fb6152452c59b74cd19657ee21498
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 13 Jun 2015 16:53:36 +0000 (13 18:53 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 13 Jun 2015 17:03:59 +0000 (13 11:03 -0600)
tree9e720fea10b42f04cc548c7047e0f9ad3a10051e
parent35068ba2d2e0d9e71c67acc87451a26a95eb7244
WINGs: fix non-portable int conversion for printf in font panel size handling

The original code assumed that the (void *) type could be safely converted
to an integer for the printf use, but it is not that simple, as pointed by
gcc when compiling on 32-bits platforms, where pointers do not match
anymore the long (%li) size.

The new code now do the conversions by the rules, so the compiler knows
what is happening and printf always gets the 'int' it expects.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WINGs/wfontpanel.c