[Development] QtCS 2017 QtCore sessions

Thiago Macieira thiago.macieira at intel.com
Wed Nov 1 16:46:01 CET 2017


On quarta-feira, 1 de novembro de 2017 08:25:01 PDT Konstantin Tokarev wrote:
> > No, not really, since it's already limited to half the full VM space. No
> > object can be larger than that. Using unsigned is unnecessary.
> 
> Using unsigned for size types is crucial in preventing signed overflow in
> pathological cases.

Using signed for size types is crucial because the API expects to be able to 
count backwards from the end and needs to report failure in other situations. 
So unsigned is simply ruled out.

There are also no pathological cases since there is no overflow.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list