diff options
author | Syoyo Fujita <syoyo@lighttransport.com> | 2021-06-01 17:22:20 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 17:22:20 +0900 |
commit | 0b6a0b5fc0d39f36a69a82d29383cf1bda88e999 (patch) | |
tree | 4acc7dfc0b8cf6ddb24843431bb3a36185d354c8 | |
parent | 0ed6c38f20c63b996fbb9fa949569b2acb213a3d (diff) | |
download | tinyobjloader-0b6a0b5fc0d39f36a69a82d29383cf1bda88e999.tar.gz |
Suppress clang warning: -Wdouble-promotion (#308)
-rw-r--r-- | tiny_obj_loader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index bc5b188..706eaaf 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -2453,7 +2453,7 @@ bool LoadObj(attrib_t *attrib, std::vector<shape_t> *shapes, // TODO(syoyo): # of elements check parseReal2(&j, &w, &token, -1.0); - if (j < 0.0) { + if (j < static_cast<real_t>(0)) { if (err) { std::stringstream ss; ss << "Failed parse `vw' line. joint_id is negative. " |