Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f72fb80

Browse files
author
Mattias Harrysson
committed
fix compiler warnings
1 parent b96ee06 commit f72fb80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tiny_obj_loader.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ updateVertex(
178178
return it->second;
179179
}
180180

181-
assert(in_positions.size() > (3*i.v_idx+2));
181+
assert(in_positions.size() > (unsigned int) (3*i.v_idx+2));
182182

183183
positions.push_back(in_positions[3*i.v_idx+0]);
184184
positions.push_back(in_positions[3*i.v_idx+1]);
@@ -721,4 +721,4 @@ std::string LoadObj(
721721
}
722722

723723

724-
};
724+
}

tiny_obj_loader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ std::string LoadObj(
9797
std::string LoadMtl (
9898
std::map<std::string, material_t>& material_map,
9999
std::istream& inStream);
100-
};
100+
}
101101

102102
#endif // _TINY_OBJ_LOADER_H

0 commit comments

Comments
 (0)