Permalink
Browse files

mac compile fix

  • Loading branch information...
jacob1 committed May 18, 2018
1 parent 3b42878 commit e8373ffa4c5296e094533322dd0eca45723142ee
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/common/String.h
@@ -510,7 +510,7 @@ class String : public std::basic_string<char32_t>
String value(*this);
for(value_type &ch : value)
if(ch <= std::numeric_limits<ByteString::value_type>::max())
ch = std::tolower(ch, loc);
ch = std::tolower(static_cast<ByteString::value_type>(ch), loc);
return value;
}
@@ -520,7 +520,7 @@ class String : public std::basic_string<char32_t>
String value(*this);
for(value_type &ch : value)
if(ch <= std::numeric_limits<ByteString::value_type>::max())
ch = std::toupper(ch, loc);
ch = std::toupper(static_cast<ByteString::value_type>(ch), loc);
return value;
}

0 comments on commit e8373ff

Please sign in to comment.