From db3642de8958835fd26d0e525a311def3bef1cae Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Thu, 9 Jul 2015 14:41:14 -0600 Subject: Fixed misplaced parens --- src/LinearUpscale.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/LinearUpscale.h') diff --git a/src/LinearUpscale.h b/src/LinearUpscale.h index d4e9da82a..adc873912 100644 --- a/src/LinearUpscale.h +++ b/src/LinearUpscale.h @@ -184,15 +184,15 @@ template void LinearUpscale3DArray( TYPE RatioZ[MAX_UPSCALE_Z]; for (int x = 0; x <= a_UpscaleX; x++) { - RatioX[x] = static_cast(x / a_UpscaleX); + RatioX[x] = static_cast(x) / a_UpscaleX; } for (int y = 0; y <= a_UpscaleY; y++) { - RatioY[y] = static_cast(y / a_UpscaleY); + RatioY[y] = static_cast(y) / a_UpscaleY; } for (int z = 0; z <= a_UpscaleZ; z++) { - RatioZ[z] = static_cast(z / a_UpscaleZ); + RatioZ[z] = static_cast(z) / a_UpscaleZ; } // Interpolate each XYZ cell: -- cgit v1.2.3