From 62ec784cef7cedd3ec66d1e3d42d52a3c1f82f0a Mon Sep 17 00:00:00 2001 From: Sebastien Bonopera Date: Mon, 12 Oct 2015 20:08:25 +0200 Subject: [PATCH] Fixed issue in PlyParser (uint16 values misparsed) --- code/PlyParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);