diff options
Diffstat (limited to 'hex_functions.cpp')
| -rw-r--r-- | hex_functions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hex_functions.cpp b/hex_functions.cpp index e07a7b08..683097ee 100644 --- a/hex_functions.cpp +++ b/hex_functions.cpp @@ -57,10 +57,10 @@ namespace omni return "FF"; std::stringstream stream; - stream << std::setfill ('0') << std::setw(sizeof(char)*2) + stream << std::setfill('0') << std::setw(sizeof(char)*2) << std::hex << input; std::string result(stream.str()); - std::transform(str.begin(), str.end(), str.begin(), ::toupper); + std::transform(result.begin(), result.end(), result.begin(), ::toupper); return result; } |
