From 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 Apr 2021 23:42:15 +0100 Subject: Fix a ton of pedantic compiler 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 3cbf06602..a94b46fac 100644 --- a/src/inspstring.cpp +++ b/src/inspstring.cpp @@ -50,7 +50,7 @@ std::string BinToBase64(const std::string& data_str, const char* table, char pad table = b64table; uint32_t buffer; - uint8_t* data = (uint8_t*)data_str.data(); + const uint8_t* data = reinterpret_cast(data_str.data()); std::string rv; size_t i = 0; while (i + 2 < data_str.length()) -- cgit v1.3.1-10-gc9f91