fix uint32 for none windows env (#2309)

Co-authored-by: Cedric Guillemet <ceguille@microsoft.com>
This commit is contained in:
Cedric Guillemet 2020-11-13 19:25:59 +01:00 committed by GitHub
parent 77184d5743
commit 9e90a360e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2046,14 +2046,14 @@ namespace bgfx
case DXBC_CHUNK_RDEF: // Resource definition.
chunkOffset[idx] = uint32_t(bx::seek(_writer) - dxbcOffset);
size += bx::write(_writer, DXBC_CHUNK_RDEF, _err);
size += bx::write(_writer, UINT32(_dxbc.rdef.rdefCode.size()), _err);
size += bx::write(_writer, uint32_t(_dxbc.rdef.rdefCode.size()), _err);
chunkSize[idx] = bx::write(_writer, _dxbc.rdef.rdefCode.data(), _dxbc.rdef.rdefCode.size(), _err);
size += chunkSize[idx++];
break;
case DXBC_CHUNK_STAT: // Statistics.
chunkOffset[idx] = uint32_t(bx::seek(_writer) - dxbcOffset);
size += bx::write(_writer, DXBC_CHUNK_STAT, _err);
size += bx::write(_writer, UINT32(_dxbc.rdef.rdefCode.size()), _err);
size += bx::write(_writer, uint32_t(_dxbc.rdef.rdefCode.size()), _err);
chunkSize[idx] = bx::write(_writer, _dxbc.rdef.rdefCode.data(), _dxbc.rdef.rdefCode.size(), _err);
size += chunkSize[idx++];
break;