From 927ce1cd0ac4c0ba078fdf0e6e071936af34a27b Mon Sep 17 00:00:00 2001 From: Anakin Date: Wed, 16 Nov 2016 14:18:11 +0100 Subject: [PATCH] fixed warnings --- MshViewer/Source/Object.cpp | 2 +- MshViewer/Source/Texture.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MshViewer/Source/Object.cpp b/MshViewer/Source/Object.cpp index a6380b9..1642a43 100644 --- a/MshViewer/Source/Object.cpp +++ b/MshViewer/Source/Object.cpp @@ -487,7 +487,7 @@ void Object::analyseSegmChunks(Modl * dataDestination, std::list& if (highBitCount == 2) { // reset highBitCount - highBitCount == 0; + highBitCount = 0; // remove the last two values.. std::uint32_t saveData[2]; diff --git a/MshViewer/Source/Texture.cpp b/MshViewer/Source/Texture.cpp index 02c5ce2..a689b3d 100644 --- a/MshViewer/Source/Texture.cpp +++ b/MshViewer/Source/Texture.cpp @@ -56,7 +56,7 @@ TextureTGA::TextureTGA(const char * filePath) { std::uint8_t tempChunkHeader; std::uint8_t tempData[5]; - int tempByteIndex = 0; + unsigned int tempByteIndex = 0; std::size_t tempPixelIndex = 0; do {