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

Skip to content

Commit 0b6a0b5

Browse files
authored
Suppress clang warning: -Wdouble-promotion (tinyobjloader#308)
1 parent 0ed6c38 commit 0b6a0b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tiny_obj_loader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ bool LoadObj(attrib_t *attrib, std::vector<shape_t> *shapes,
24532453
// TODO(syoyo): # of elements check
24542454
parseReal2(&j, &w, &token, -1.0);
24552455

2456-
if (j < 0.0) {
2456+
if (j < static_cast<real_t>(0)) {
24572457
if (err) {
24582458
std::stringstream ss;
24592459
ss << "Failed parse `vw' line. joint_id is negative. "

0 commit comments

Comments
 (0)