summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libcss/fpmath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libcss/fpmath.h b/include/libcss/fpmath.h
index 2890da2..bed5ee6 100644
--- a/include/libcss/fpmath.h
+++ b/include/libcss/fpmath.h
@@ -83,7 +83,7 @@ css_multiply_fixed(const css_fixed x, const css_fixed y) {
static inline css_fixed
css_int_to_fixed(const int a) {
- int64_t xx = ((int64_t) a) << CSS_RADIX_POINT;
+ int64_t xx = ((int64_t) a) * (1 << CSS_RADIX_POINT);
if (xx < INT_MIN)
xx = INT_MIN;