[wx-dev] int vs ssize_t and u-inst vs size_t

ABX abx at abx.art.pl
Tue Aug 1 09:42:41 PDT 2006


Nusret Taţçý <nusi at sofha.de>:
> For example 
> GetParagraphCount() returns a signed int where I'd say that it should 
> return size_t.

IIRC we have agreed and already partially implemented that most peaceful
solution is to use 'unsigned int' rather than 'ssize_t'. This was exactly
because of x64 platform tested by Vadim because unsigned int can be assigned
to int without extra warning while still preserve 'unsigned' nature. There was
one or two threads about it not so long ago.

> Is there anything I can do to 'fix' these warnings in CVS_HEAD?

Probably best thing would be to extract each issue and start new thread about
it, provide complete patches and be ready for lots of testing or comments
because what works smoothly for 'x64 with VS2005' can be awful for Mac or
other compiler/architecture.

ABX




More information about the wx-dev mailing list