From e36dae20b7d1baba912c55ec55b82a380c4973da Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Thu, 5 Jul 2018 21:26:05 -0500 Subject: [PATCH] Fix hex_functions compile errors --- hex_functions.cpp | 4 ++-- hex_functions.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hex_functions.cpp b/hex_functions.cpp index e07a7b0..683097e 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; } diff --git a/hex_functions.h b/hex_functions.h index 9f7a1e7..1f22339 100644 --- a/hex_functions.h +++ b/hex_functions.h @@ -6,6 +6,8 @@ #include #include #include +#include +#include namespace omni {