Re: [Opalvoip-user] [PTLIB] Can PString.GetSize() return negative values?
Brought to you by:
csoutheren,
rjongbloed
From: Robert J. <ro...@vo...> - 2017-11-20 19:19:08
|
It is never negative. On many platforms PINDEX is defined as size_t which is typically unsigned. ---------- Robert Jongbloed Vox Lucida Pty. Ltd. On 20 Nov 2017, at 6:22 pm, Soul Trace via Opalvoip-user <opa...@li... <mailto:opa...@li...> > wrote: Hello I have simple question: Can PString.GetSize() return negative values? Looked into documentation, but found only that it returns PINDEX (aka int) value. But is it safe to compare it with unsigned value? Thank you. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org <http://Slashdot.org> ! http://sdm.link/slashdot <http://sdm.link/slashdot> _______________________________________________ Opalvoip-user mailing list Opa...@li... <mailto:Opa...@li...> https://lists.sourceforge.net/lists/listinfo/opalvoip-user |