mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-10-25 10:11:10 +00:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
0ab7e74933
commit
5b87beb373
+10
-1
@@ -959,7 +959,16 @@ inline tinygltf_json::tinygltf_json(std::nullptr_t) { init_null_(); }
|
||||
inline tinygltf_json::tinygltf_json(bool b) { init_null_(); type_ = CJ_BOOL; b_ = b ? 1 : 0; }
|
||||
inline tinygltf_json::tinygltf_json(int i) { init_null_(); type_ = CJ_INT; i_ = (int64_t)i; }
|
||||
inline tinygltf_json::tinygltf_json(int64_t i) { init_null_(); type_ = CJ_INT; i_ = i; }
|
||||
inline tinygltf_json::tinygltf_json(uint64_t u) { init_null_(); type_ = CJ_INT; i_ = (int64_t)u; }
|
||||
inline tinygltf_json::tinygltf_json(uint64_t u) {
|
||||
init_null_();
|
||||
if (u <= (uint64_t)INT64_MAX) {
|
||||
type_ = CJ_INT;
|
||||
i_ = (int64_t)u;
|
||||
} else {
|
||||
type_ = CJ_REAL;
|
||||
d_ = (double)u;
|
||||
}
|
||||
}
|
||||
inline tinygltf_json::tinygltf_json(double d) { init_null_(); type_ = CJ_REAL; d_ = d; }
|
||||
inline tinygltf_json::tinygltf_json(float f) { init_null_(); type_ = CJ_REAL; d_ = (double)f; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user