mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
32-bit compile fixes
This commit is contained in:
@@ -617,7 +617,7 @@ Program::Program(const byte *bytes, size_t length)
|
||||
std::string metastr = StringFormat::Fmt("!%u = ", (uint32_t)i);
|
||||
|
||||
auto getMetaString = [&rootblock](uint64_t id) -> rdcstr {
|
||||
return id ? rootblock.children[id - 1].getString() : "NULL";
|
||||
return id ? rootblock.children[size_t(id - 1)].getString() : "NULL";
|
||||
};
|
||||
|
||||
if(IS_KNOWN(meta.id, MetaDataRecord::STRING_OLD))
|
||||
|
||||
@@ -283,8 +283,8 @@ uint64_t BitcodeReader::decodeAbbrevParam(const AbbrevParam ¶m)
|
||||
|
||||
switch(param.encoding)
|
||||
{
|
||||
case AbbrevEncoding::Fixed: return b.fixed<uint64_t>(param.value);
|
||||
case AbbrevEncoding::VBR: return b.vbr<uint64_t>(param.value);
|
||||
case AbbrevEncoding::Fixed: return b.fixed<uint64_t>((size_t)param.value);
|
||||
case AbbrevEncoding::VBR: return b.vbr<uint64_t>((size_t)param.value);
|
||||
case AbbrevEncoding::Char6: return b.c6();
|
||||
case AbbrevEncoding::Literal: return param.value;
|
||||
case AbbrevEncoding::Array:
|
||||
|
||||
Reference in New Issue
Block a user