diff --git a/libgimpmath/gimpmath.h b/libgimpmath/gimpmath.h index d3abb33041..5925004130 100644 --- a/libgimpmath/gimpmath.h +++ b/libgimpmath/gimpmath.h @@ -84,7 +84,7 @@ G_BEGIN_DECLS * * This macro rounds its argument @x to the nearest integer. **/ -#define SIGNED_ROUND(x) ((int) ((((x) < 0) ? (x) - 0.5 : (x) + 0.5))) +#define SIGNED_ROUND(x) ((int) RINT (x)) /** * SQR: