From e57846e518a898d37c71aa5c09c2d17b124feeae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 5 May 2015 12:44:44 +0200 Subject: [PATCH] fixed compilation error c++11/clang in compressed_archive.cpp (casting from integer constant to char) --- compressed_archive/compressed_archive.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compressed_archive/compressed_archive.cpp b/compressed_archive/compressed_archive.cpp index 6d75ad6b..39081405 100644 --- a/compressed_archive/compressed_archive.cpp +++ b/compressed_archive/compressed_archive.cpp @@ -73,12 +73,12 @@ struct SevenZipInterface { //SevenZipInterface * szInterface; -const char rar[7]={0x52, 0x61, 0x72, 0x21, 0x1A, 0x07, 0x00}; -const char rar5[8]={0x52, 0x61, 0x72, 0x21, 0x1A, 0x07, 0x01, 0x00}; -const char zip[2]={0x50, 0x4B}; -const char sevenz[6]={0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C}; +const char rar[7]={static_cast(0x52), static_cast(0x61), static_cast(0x72), static_cast(0x21), static_cast(0x1A), static_cast(0x07), static_cast(0x00)}; +const char rar5[8]={static_cast(0x52), static_cast(0x61), static_cast(0x72), static_cast(0x21), static_cast(0x1A), static_cast(0x07), static_cast(0x01), static_cast(0x00)}; +const char zip[2]={static_cast(0x50), static_cast(0x4B)}; +const char sevenz[6]={static_cast(0x37), static_cast(0x7A), static_cast(0xBC), static_cast(0xAF), static_cast(0x27), static_cast(0x1C)}; const char tar[6]="ustar"; -const char arj[2]={0x60, 0xEA}; +const char arj[2]={static_cast(0x60), static_cast(0xEA)}; CompressedArchive::CompressedArchive(const QString & filePath, QObject *parent) : QObject(parent),sevenzLib(0),valid(false),tools(false) @@ -477,4 +477,4 @@ STDMETHODIMP CompressedArchive::CreateEncoder(UInt32 index, const GUID *interfac return S_OK;//szInterface->createObjectFuncRar(&CLSID_CFormatRar,interfaceID,coder); } -#endif \ No newline at end of file +#endif