From 02340285c564a7e82105137192d46d554a6fce3a Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Sun, 30 May 2021 20:37:54 +0100 Subject: Added -Wshorten-64-to-32 and fixed all warnings. --- src/inspstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inspstring.cpp') diff --git a/src/inspstring.cpp b/src/inspstring.cpp index e65e3918f..c2e1f4a4d 100644 --- a/src/inspstring.cpp +++ b/src/inspstring.cpp @@ -171,7 +171,7 @@ std::string Base64::Decode(const void* data, size_t length, const char* table) continue; // Skip invalid octets. // Add the bits for this octet to the active buffer. - current_bits = (current_bits << 6) | (chr - table); + current_bits = (current_bits << 6) | uint32_t(chr - table); seen_bits += 6; if (seen_bits >= 8) -- cgit v1.3.1-10-gc9f91