From 325b04847e11dcbd62dc8290163a8c8d1db70ef9 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Tue, 19 Nov 2013 14:56:10 -0500 Subject: [PATCH] Remove some compiler cruft with our TGA loader. --- IO/src/ImageLoaderTGA.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/IO/src/ImageLoaderTGA.cpp b/IO/src/ImageLoaderTGA.cpp index b50c2fb..5f04421 100644 --- a/IO/src/ImageLoaderTGA.cpp +++ b/IO/src/ImageLoaderTGA.cpp @@ -61,10 +61,6 @@ #include "targa.h" -static void ReportError(const char *msg) { - fprintf(stderr, "ERROR: ImageLoaderTGA -- %s\n", msg); -} - ImageLoaderTGA::ImageLoaderTGA(const uint8 *rawData, const int32 rawDataSz) : ImageLoader(rawData, rawDataSz) { } @@ -78,7 +74,7 @@ bool ImageLoaderTGA::ReadData() { m_Width = tga.width; m_Height = tga.height; - assert(tga.imagelength == m_Width * m_Height * 4); + assert(static_cast(tga.imageLength) == m_Width * m_Height * 4); return LoadFromPixelBuffer(reinterpret_cast(tga.image)); }