aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/dct_compress.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/dct_compress.cc')
-rw-r--r--libtests/dct_compress.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtests/dct_compress.cc b/libtests/dct_compress.cc
index e2ed7adf..65539582 100644
--- a/libtests/dct_compress.cc
+++ b/libtests/dct_compress.cc
@@ -42,8 +42,8 @@ int main(int argc, char* argv[])
char* infilename = argv[1];
char* outfilename = argv[2];
- unsigned int width = atoi(argv[3]);
- unsigned int height = atoi(argv[4]);
+ int width = QUtil::string_to_int(argv[3]);
+ int height = QUtil::string_to_int(argv[4]);
char* colorspace = argv[5];
J_COLOR_SPACE cs =
((strcmp(colorspace, "rgb") == 0) ? JCS_RGB :