From 02dcd2183a5c8a8bb2fba2c4578f6dd9d7dd6a06 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 6 Sep 2019 23:19:38 +0100 Subject: [PATCH] Fix linux compilation --- qrenderdoc/Code/FormatElement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Code/FormatElement.cpp b/qrenderdoc/Code/FormatElement.cpp index e18854b5c..6199a28b1 100644 --- a/qrenderdoc/Code/FormatElement.cpp +++ b/qrenderdoc/Code/FormatElement.cpp @@ -905,7 +905,7 @@ QVariantList FormatElement::GetVariants(const byte *&data, const byte *end) cons else if(format.compType == CompType::SInt) { if(format.compByteWidth == 8) - ret.push_back((int64_t)readObj(data, end, ok)); + ret.push_back((qlonglong)readObj(data, end, ok)); else if(format.compByteWidth == 4) ret.push_back((int)readObj(data, end, ok)); else if(format.compByteWidth == 2) @@ -916,7 +916,7 @@ QVariantList FormatElement::GetVariants(const byte *&data, const byte *end) cons else if(format.compType == CompType::UInt) { if(format.compByteWidth == 8) - ret.push_back((uint64_t)readObj(data, end, ok)); + ret.push_back((qulonglong)readObj(data, end, ok)); else if(format.compByteWidth == 4) ret.push_back((uint32_t)readObj(data, end, ok)); else if(format.compByteWidth == 2)