From: cristy Date: Sat, 11 Feb 2012 00:02:25 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=118fc66c573ba05fb7eaa93f5c239fc3c0a04a02;p=imagemagick --- diff --git a/MagickWand/mogrify.c b/MagickWand/mogrify.c index 5b2e4f3d4..a9cb15c9b 100644 --- a/MagickWand/mogrify.c +++ b/MagickWand/mogrify.c @@ -129,9 +129,11 @@ WandExport MagickBooleanType MagickCommandGenesis(ImageInfo *image_info, size_t iterations, - n, number_threads; + ssize_t + n; + (void) setlocale(LC_ALL,""); (void) setlocale(LC_NUMERIC,"C"); concurrent=MagickFalse; @@ -175,7 +177,7 @@ WandExport MagickBooleanType MagickCommandGenesis(ImageInfo *image_info, } number_threads=GetOpenMPMaximumThreads(); serial=0.0; - for (n=1; n <= number_threads; n++) + for (n=1; n <= (ssize_t) number_threads; n++) { double e, @@ -185,7 +187,7 @@ WandExport MagickBooleanType MagickCommandGenesis(ImageInfo *image_info, TimerInfo *timer; - SetOpenMPMaximumThreads(n); + SetOpenMPMaximumThreads((int) n); timer=AcquireTimerInfo(); if (concurrent == MagickFalse) {