derf/feh — Issue #69: Fix for compiler warnings on pointer casts
Author: pbleser
Created: 2011-10-11 05:56:44+00:00
State: open

Casting pointers as ints causes truncation and compiler warnings.
As those the pointers are just used in feh as means to pass any data, we just need to get rid of the compiler warnings.

The attached patch uses a casting on intptr_t before casting to int to do so.

Furthermore, it uses %zu to print the intptr_t values, rather than %d.