Closed GoogleCodeExporter closed 9 years ago
Yeah, these tests haven't passed yet. They will be fixed.
As for the warnings, the first two are fixed in the trunk. The conversion from
std::streamsize to size_t, I've never seen before, but I guess streamsize is
signed, so it's worried about truncating. I'll take a look.
Original comment by jbe...@gmail.com
on 3 Mar 2011 at 6:12
No. Streamsize is __int64.
03.03.2011 21:13 ������������ yaml-cpp@googlecode.com �������:
Original comment by Rider...@gmail.com
on 3 Mar 2011 at 8:04
Right, so it's signed. (Actually, streamsize doesn't *have* to be 64-bit - C++
doesn't mandate sizes other than char.) But size_t is unsigned (probably also
64-bit).
Original comment by jbe...@gmail.com
on 3 Mar 2011 at 8:22
[deleted comment]
streambuf::sgetn() never returns negative values so a static_cast would fix
this warning safely (assuming YAML_PREFETCH_SIZE will fit in size_t). Patch
attached
Original comment by mattberg...@gmail.com
on 14 Feb 2012 at 1:43
Attachments:
Thanks, patched r2d1d27679f20.
Original comment by jbe...@gmail.com
on 14 Feb 2012 at 4:13
Original comment by jbe...@gmail.com
on 24 Jan 2015 at 9:28
Original issue reported on code.google.com by
Rider...@gmail.com
on 3 Mar 2011 at 3:14