Re: GLib and 64-bit Windows



Also, there are a lot of assumptions that the return value of strlen is an int... Obviously, the chance of a string exceeding the 32-bit boundary is fairly rare, and you certainly wouldn't want to call strlen on a string that big, but the manpage says what it says, and strlen returns a size_t.

It would be A Bad Thing to change the function declarations that cause this I assume, as it would break ABI compatibility. However, for function-local variables that make this mistake, should it be fine to fix this? Or is it more appropriate to cast strlen to an int?


Jake Goulding wrote:
Of course, that would have made more sense... :-)

http://www.myxopho.be/glib-win64-compile.log
And grepped for warning:
http://www.myxopho.be/glib-win64-warnings.log


Tor Lillqvist wrote:
You wouldn't have the file names and line numbers for those
warnings...? (Maybe you could put the whole compilation output
listing up on the web somewhere.)

--tml
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list



--

JAKE GOULDING
Software Engineer
goulding vivisimo com

Viv�imo [Search Done Right�]
1710 Murray Avenue
Pittsburgh, PA 15217 USA
tel: +1.412.422.2499 x105
fax: +1.412.422.2495
vivisimo.com      clusty.com




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