Skip to content

Commit 7c29811

Browse files
committed
More casting to make char -> int conversion happy.
Signed-off-by: Jeff Lait <jlait@andorra.sidefx.com>
1 parent cf38e71 commit 7c29811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openvdb/openvdb/io/Archive.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,8 +1030,8 @@ Archive::readHeader(std::istream& is)
10301030
auto to_hex = [](char c) -> char
10311031
{
10321032
c &= 0xf;
1033-
if (c < 10) return '0' + c;
1034-
return c - 10 + 'A';
1033+
if (c < 10) return (char)('0' + c);
1034+
return (char)(c - 10 + 'A');
10351035
};
10361036
for (int i = 0; i < 16; i++)
10371037
{

0 commit comments

Comments
 (0)