Build fix for 1684
Requires cast from size_t to uint64 like in other places, otherwise the call to the constructor for GenericValue() is ambiguous. Fixes #1684pull/1705/head
parent
89a62edb9a
commit
0e99f1f587
|
@ -584,7 +584,7 @@ namespace glTF2 {
|
||||||
if (bodyBuffer->byteLength > 0) {
|
if (bodyBuffer->byteLength > 0) {
|
||||||
rapidjson::Value glbBodyBuffer;
|
rapidjson::Value glbBodyBuffer;
|
||||||
glbBodyBuffer.SetObject();
|
glbBodyBuffer.SetObject();
|
||||||
glbBodyBuffer.AddMember("byteLength", bodyBuffer->byteLength, mAl);
|
glbBodyBuffer.AddMember("byteLength", static_cast<uint64_t>(bodyBuffer->byteLength), mAl);
|
||||||
mDoc["buffers"].PushBack(glbBodyBuffer, mAl);
|
mDoc["buffers"].PushBack(glbBodyBuffer, mAl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue