Browse Source

Merge pull request #669 from Schebb/master

Fixed issue in PlyParser (uint16 values misparsed)
Alexander Gessler 10 years ago
parent
commit
f489a7d076
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/PlyParser.cpp

+ 1 - 1
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);