aboutsummaryrefslogtreecommitdiff
path: root/src/inspstring.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-04 23:42:15 +0100
committerGravatar Sadie Powell2021-04-04 23:42:15 +0100
commit7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch)
treef5a81d03f572392e7547d58f979fdd488de6ff0b /src/inspstring.cpp
parentRemove the unused ExitCodes array. (diff)
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'src/inspstring.cpp')
-rw-r--r--src/inspstring.cpp2
1 files changed, 1 insertions, 1 deletions
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<const uint8_t*>(data_str.data());
std::string rv;
size_t i = 0;
while (i + 2 < data_str.length())