Re: GType <=> gpointer

On Tuesday, February 3, 2004, at 03:28 AM, Manish Singh wrote:

On Tue, Feb 03, 2004 at 12:03:24AM -0500, muppet wrote:
interestingly, the GPOINTER_TO_UINT casts were necessary to get
gtk2-perl working correctly on x86_64, and seem to have no ill effect
on mips.

Uhm, those casts aren't really correct on x86_64 either (though it will
work in most cases). type = (GType) pointer should work just fine. How
did you come to the conclusion it was required?

a) to hush warnings about differently sized integers,
b) i didn't realize that a GType wasn't the same size as an int,
c) didn't cause it to break on x86_64 or x86 so i guessed it was ok, and
d) looked like the right thing to do at the time *blush*

"that's it! you're a genius!" "yes. that's what i think. do you think i deserve a raise?"
	- dialogue from 'Godzilla versus Mothra', 1964

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]