X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fbinary.cpp;h=52a8a337b1c41c16053457e31f5ed34b2f49ba0f;hb=f3260fdc3454cde02ac901955a1d0cd867aa8508;hp=6c1a5898315dacec81611219073f89ba64b309ac;hpb=2a17cee6192f58b3fccef2a9bab6a1214037dcbb;p=meshio%2Fmeshio.git diff --git a/src/binary.cpp b/src/binary.cpp index 6c1a589..52a8a33 100644 --- a/src/binary.cpp +++ b/src/binary.cpp @@ -19,12 +19,12 @@ namespace meshio { return 0; } io_.read(buf, size); - size=io_.gcount(); - if(size==0){ + size_t read_size=static_cast(io_.gcount()); + if(read_size==0){ eof_=true; } - pos_+=size; - return size; + pos_+=read_size; + return read_size; } unsigned int FileReader::getPos()const