Merge pull request #486 from pmcgvr/release
Fix stripping of slashes from paths
diff --git a/tiny_gltf.h b/tiny_gltf.h
index 153bcec..e5c0d2c 100644
--- a/tiny_gltf.h
+++ b/tiny_gltf.h
@@ -3042,7 +3042,7 @@
return false;
}
- (*filesize_out) = sz;
+ (*filesize_out) = static_cast<size_t>(sz);
return true;
#endif
}
@@ -3067,7 +3067,7 @@
}
return false;
}
- out->resize(size);
+ out->resize(static_cast<size_t>(size));
AAsset_read(asset, reinterpret_cast<char *>(&out->at(0)), size);
AAsset_close(asset);
return true;