summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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 0e314cb..6373125 100644
--- a/include/libcss/fpmath.h
+++ b/include/libcss/fpmath.h
@@ -32,7 +32,7 @@ typedef int32_t css_fixed;
#define FDIVI(a, b) ((a) / (b))
/* Convert a floating point value to fixed point */
-#define FLTTOFIX(a) ((fixed) ((a) * (float) (1 << 10)))
+#define FLTTOFIX(a) ((css_fixed) ((a) * (float) (1 << 10)))
/* Convert a fixed point value to floating point */
#define FIXTOFLT(a) ((float) (a) / (float) (1 << 10))