See I'm using glib, and gpointer is a typedef of void *. (glib did this type to make things clear, I guess).
when I make a signal connect, I have to pass the data as void pointer (void *).
so the code is (something like this) :
...
g_signal_connect (object, function, (gpointer) data);
...
If I use short as data type, I get a warning message of gcc like this:
warning: cast to pointer from integer of different size
If I use int as data type, I get no warnings.
But in both cases, everything works well, so, why I get this warning using short?