mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
eliminate compiler warning
This commit is contained in:
+2
-2
@@ -3393,7 +3393,7 @@ static MagickBooleanType ExecuteRPN (FxInfo * pfx, fxRtT * pfxrt, fxFltType *res
|
||||
regA = -regA;
|
||||
break;
|
||||
case oLshift:
|
||||
if (CastDoubleToSizeT(regB+0.5) >= (8*sizeof(size_t)))
|
||||
if (CastDoubleToSizeT((double) regB+0.5) >= (8*sizeof(size_t)))
|
||||
{
|
||||
(void) ThrowMagickException ( pfx->exception, GetMagickModule(),
|
||||
OptionError, "undefined shift", "%g", (double) regB);
|
||||
@@ -3403,7 +3403,7 @@ static MagickBooleanType ExecuteRPN (FxInfo * pfx, fxRtT * pfxrt, fxFltType *res
|
||||
regA = (fxFltType) (CastDoubleToSizeT((double) regA+0.5) << CastDoubleToSizeT((double) regB+0.5));
|
||||
break;
|
||||
case oRshift:
|
||||
if (CastDoubleToSizeT(regB+0.5) >= (8*sizeof(size_t)))
|
||||
if (CastDoubleToSizeT((double) regB+0.5) >= (8*sizeof(size_t)))
|
||||
{
|
||||
(void) ThrowMagickException ( pfx->exception, GetMagickModule(),
|
||||
OptionError, "undefined shift", "%g", (double) regB);
|
||||
|
||||
Reference in New Issue
Block a user