From f72fb80ac96b91322015aebf8e4cd7c7f6ffb866 Mon Sep 17 00:00:00 2001 From: Mattias Harrysson Date: Mon, 2 Jun 2014 20:52:44 +0200 Subject: [PATCH] fix compiler warnings --- tiny_obj_loader.cc | 4 ++-- tiny_obj_loader.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tiny_obj_loader.cc b/tiny_obj_loader.cc index 50fa69b..5417487 100755 --- a/tiny_obj_loader.cc +++ b/tiny_obj_loader.cc @@ -178,7 +178,7 @@ updateVertex( return it->second; } - assert(in_positions.size() > (3*i.v_idx+2)); + assert(in_positions.size() > (unsigned int) (3*i.v_idx+2)); positions.push_back(in_positions[3*i.v_idx+0]); positions.push_back(in_positions[3*i.v_idx+1]); @@ -721,4 +721,4 @@ std::string LoadObj( } -}; +} diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index c275a88..b4c9337 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -97,6 +97,6 @@ std::string LoadObj( std::string LoadMtl ( std::map& material_map, std::istream& inStream); -}; +} #endif // _TINY_OBJ_LOADER_H