diff --git a/src/threads/fixed-point.h b/src/threads/fixed-point.h index 0270b55..c6872cf 100644 --- a/src/threads/fixed-point.h +++ b/src/threads/fixed-point.h @@ -4,7 +4,7 @@ /* Fixed Point Arithmetic bit count constants */ #define NUM_INT_BITS 11 #define NUM_FRAC_BITS 20 -#define CONVERSION_CONST 1 << NUM_FRAC_BITS /* f = 2^q, (2^20) */ +#define CONVERSION_CONST (1 << NUM_FRAC_BITS) /* f = 2^q, (2^20) */ /* Fixed Point Arithmetic conversion operations */ #define INT_TO_FP(n) ((n) * (CONVERSION_CONST))