Re: GLib and 64-bit Windows



Or is it more appropriate to cast strlen to an int?

I would really hate to see that.  It could easily mask more important
problems later.

Note, that if you really want to change something, it is probably safer
to change it to a gssize, i.e., the signed type of the same width as
size_t.  You'll get far fewer surprises with C's handling of signed and
unsigned types that way.

IMHO, don't worry about strlen now.

Morten



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