diff --git a/src/threads/fixed-point.h b/src/threads/fixed-point.h index 79c088b..9b0140c 100644 --- a/src/threads/fixed-point.h +++ b/src/threads/fixed-point.h @@ -12,7 +12,7 @@ /* Handles conversion of fixed point to integer. First version truncates, second one rounds */ #define FLOOR_FP_TO_INT(x) ((x) / (CONVERSION_CONST)) -#define ROUNDING_FP_TO_INT(x) ((x) >= 0 ? ((x) + ((CONVERSION_CONST) / 2)) : ((x) - ((CONVERSION_CONST) / 2)) +#define ROUNDING_FP_TO_INT(x) ((x) >= 0 ? ((x) + ((CONVERSION_CONST) / 2)) : ((x) - ((CONVERSION_CONST) / 2))) /* Fixed Point Arithmetic addition operations */ #define FP_ADD(x, y) ((x) + (y))