diff --git a/code/PlyParser.cpp b/code/PlyParser.cpp index db4c2b5d4..8d6ce0698 100644 --- a/code/PlyParser.cpp +++ b/code/PlyParser.cpp @@ -857,7 +857,7 @@ bool PLY::PropertyInstance::ParseValueBinary( case EDT_UShort: { - int16_t i = *((uint16_t*)pCur); + uint16_t i = *((uint16_t*)pCur); // Swap endianess if (p_bBE)ByteSwap::Swap(&i);