From f4e683fc6bd6ac76f9979f49d737588b6ddf16b0 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周六, 14 11月 2020 22:13:13 +0800 Subject: [PATCH] windows smbios --- src/library/base/base64.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/library/base/base64.cpp b/src/library/base/base64.cpp index 2245be1..4eaf10e 100644 --- a/src/library/base/base64.cpp +++ b/src/library/base/base64.cpp @@ -48,8 +48,8 @@ string base64(const void* binaryData, size_t len, int lineLenght) { const unsigned char* bin = (const unsigned char*)binaryData; - int rc = 0; // result counter - int byteNo; // I need this after the loop + // int rc = 0; // result counter + unsigned int byteNo; // I need this after the loop int modulusLen = len % 3; int pad = ((modulusLen & 1) << 1) + ((modulusLen & 2) >> 1); // 2 gives 1 and 1 gives 2, but 0 gives 0. @@ -108,8 +108,8 @@ tmp_str.erase(std::remove(tmp_str.begin(), tmp_str.end(), '\n'), tmp_str.end()); const unsigned char* safeAsciiPtr = (const unsigned char*)tmp_str.c_str(); std::vector<uint8_t> bin; - int cb = 0; - int charNo; + // int cb = 0; + unsigned int charNo; int pad = 0; size_t len = tmp_str.size(); -- Gitblit v1.9.1