summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-09-06 22:44:49 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-09-06 22:44:49 +0000
commit24f2bcd864af137f9a052488337a214677013e5a (patch)
tree45d5aefe0d737e2857bcd3fff4b802030651739a /include
parent2a7bff7d173e3cbdfee3926bd264696a61f75589 (diff)
downloadlibcss-24f2bcd864af137f9a052488337a214677013e5a.tar.gz
libcss-24f2bcd864af137f9a052488337a214677013e5a.tar.bz2
Explicitly narrow result
svn path=/trunk/libcss/; revision=12769
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 36e0ab5..1192222 100644
--- a/include/libcss/fpmath.h
+++ b/include/libcss/fpmath.h
@@ -104,7 +104,7 @@ css_float_to_fixed(const float a) {
if (xx > INT_MAX)
xx = INT_MAX;
- return xx;
+ return (css_fixed) xx;
}
/* Add two fixed point values */