Skip to content

Commit 085c4cf

Browse files
authored
Merge pull request #14 from theHamsta/unsigned
fix build on gcc: avoid narrowing conversion signed/unsigned
2 parents 2e49968 + e1e046b commit 085c4cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dp/sg/io/DPBF/Loader/DPBFLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1654,7 +1654,7 @@ inline dp::DataType DPBFLoader::convertDataType( unsigned int dataType )
16541654
return dp::DataType::FLOAT_32; // was DP_FLOAT
16551655
case 7:
16561656
return dp::DataType::FLOAT_64; // was DP_DOUBLE
1657-
case ~0:
1657+
case ~0u:
16581658
return dp::DataType::UNKNOWN;
16591659
}
16601660
DP_ASSERT( !"unsupported datatype");

0 commit comments

Comments
 (0)