diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/cxxformat/formatters.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cxxformat/formatters.hpp b/include/cxxformat/formatters.hpp index 55874f1..c32d2e8 100644 --- a/include/cxxformat/formatters.hpp +++ b/include/cxxformat/formatters.hpp @@ -117,7 +117,7 @@ namespace format { if (spec.conversion == 'X') { - std::transform(result.begin(), result.end(), result.data(), [](char c) + std::transform(converted.begin(), converted.end(), result.data(), [](char c) { return (c >= 'a' && c <= 'z') ? c + ('A' - 'a') : c; }); @@ -368,7 +368,7 @@ namespace format { if (uppercase) { - std::transform(result.data(), end, result.data(), [](char c) + std::transform(data, end, data, [](char c) { return (c >= 'a' && c <= 'z') ? c + ('A' - 'a') : c; }); |
