ddiakopoulos / tinyply

:earth_africa: C++11 ply 3d mesh format importer & exporter
599 stars 118 forks source link

warning: C4267: 'return': conversion from 'size_t' to 'int', possible loss of data #7

Closed ttnghia closed 6 years ago

ttnghia commented 7 years ago

Congratulating for the 2.0 version! I would like to address some warnings that keep appearing which annoyed me a lot:


...\tinyply\source\tinyply.cpp(206): warning C4100: 'is': unreferenced formal parameter
...\tinyply\source\tinyply.cpp(472): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
...\tinyply\source\tinyply.cpp(472): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
...\tinyply\source\tinyply.cpp(485): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
...\tinyply\source\tinyply.cpp(485): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
...\tinyply\source\tinyply.cpp(520): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
...\tinyply\source\tinyply.cpp(526): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
``

Thanks.
ddiakopoulos commented 6 years ago

Fixed on master!