[cogl-pango-glyph-cache] Fix compiler warning on 64-bit
authorNeil Roberts <neil@linux.intel.com>
Thu, 26 Feb 2009 10:56:42 +0000 (10:56 +0000)
committerNeil Roberts <neil@linux.intel.com>
Thu, 26 Feb 2009 10:56:42 +0000 (10:56 +0000)
commitce83007c1d140e91250d933ba9e533a00ffb9e84
tree6b10b91600d4fb726600b90b115ef6b7d6cbaeee
parent3425331cc167f029bc4b86a66d95d3e498f52514
[cogl-pango-glyph-cache] Fix compiler warning on 64-bit

gcc warns about casting a pointer to a guint because it is a different
size on 64-bit machines. However the pointer is only used as a hash so
it doesn't matter if we lose the most significant bits. The patch
makes it use GPOINTER_TO_UINT instead which first casts it to a gulong
and avoids the warning.
clutter/pango/cogl-pango-glyph-cache.c