[Interest] Signed return type of QIODevice::pos() - why?

Rainer Wiesenfarth Rainer_Wiesenfarth at Trimble.com
Thu Nov 13 14:45:45 CET 2014


One of my colleagues just asked the rather philosophical question why the
result of QFile::pos() - and thus QIODevice::pos() - is of type qint64 (and
thus signed). He had expected an unsigned type, ideally size_t or offset_t.

I was unable to find a reason, but maybe someone on the list can step in?

Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth

-- 
Software Engineer | Trimble Geospatial
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/geospatial/ | http://www.inpho.de/

Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6250 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141113/990404a9/attachment.bin>


More information about the Interest mailing list