From 6861c7f681821394c8786904abda629b9bd0d59a Mon Sep 17 00:00:00 2001 From: castano Date: Mon, 17 Dec 2007 06:28:43 +0000 Subject: [PATCH] Fix msvc warnings. --- src/nvtt/tools/resize.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nvtt/tools/resize.cpp b/src/nvtt/tools/resize.cpp index 725d820..c8b8deb 100644 --- a/src/nvtt/tools/resize.cpp +++ b/src/nvtt/tools/resize.cpp @@ -84,14 +84,14 @@ int main(int argc, char *argv[]) if (strcmp("-s", argv[i]) == 0) { if (i+1 < argc && argv[i+1][0] != '-') { - scale = atof(argv[i+1]); + scale = (float)atof(argv[i+1]); i++; } } else if (strcmp("-g", argv[i]) == 0) { if (i+1 < argc && argv[i+1][0] != '-') { - gamma = atof(argv[i+1]); + gamma = (float)atof(argv[i+1]); i++; } } @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) nv::FloatImage fimage(&image); fimage.toLinear(0, 3, gamma); - nv::AutoPtr fresult(fimage.downSample(*filter, image.width() * scale, image.height() * scale, nv::FloatImage::WrapMode_Mirror)); + nv::AutoPtr fresult(fimage.downSample(*filter, uint(image.width() * scale), uint(image.height() * scale), nv::FloatImage::WrapMode_Mirror)); nv::AutoPtr result(fresult->createImageGammaCorrect(gamma));