Skip to content

Commit

Permalink
shut up int/unsigned warning complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Apr 11, 2013
1 parent 8052dc7 commit 4713fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pdal/Utils.hpp
Expand Up @@ -148,9 +148,9 @@ class PDAL_DLL Utils
for (std::string::const_iterator it = source.begin(); it < source.end(); it += 2) {
unsigned char v = 0;
if (::isxdigit(*it))
v = nibbles[::toupper(*it) - '0'] << 4;
v = (unsigned char)nibbles[::toupper(*it) - '0'] << 4;
if (it + 1 < source.end() && ::isxdigit(*(it + 1)))
v += nibbles[::toupper(*(it + 1)) - '0'];
v += (unsigned char)nibbles[::toupper(*(it + 1)) - '0'];
retval.push_back(v);
}
return retval;
Expand Down

0 comments on commit 4713fdf

Please sign in to comment.