summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-06-28 03:40:04 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-06-28 03:40:04 +0000
commit8efd7981e86289200e3e38cd46184d205db00027 (patch)
tree0fe572bd68e76910b9d425db660bc96e901642ed
parentb34a0e55fc302f4efd8f969ea2a04b1760d97858 (diff)
downloadlibcss-8efd7981e86289200e3e38cd46184d205db00027.tar.gz
libcss-8efd7981e86289200e3e38cd46184d205db00027.tar.bz2
Fix cast
svn path=/trunk/libcss/; revision=8091
-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))