Skip to content

Commit 3c2ee3d

Browse files
committed
Make the to_hex take an unsigned int in both cases as shifting right
will promote char anyways. Signed-off-by: Jeff Lait <[email protected]>
1 parent 7c29811 commit 3c2ee3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openvdb/openvdb/io/Archive.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ Archive::readHeader(std::istream& is)
10271027
char uuidBytes[16];
10281028
is.read(uuidBytes, 16);
10291029
char uuidStr[33];
1030-
auto to_hex = [](char c) -> char
1030+
auto to_hex = [](unsigned int c) -> char
10311031
{
10321032
c &= 0xf;
10331033
if (c < 10) return (char)('0' + c);

0 commit comments

Comments
 (0)