diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-12 17:46:11 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-12 17:46:11 +0000 |
commit | 5ca8e29dcfc73b13a3c4c32e58619d9c486df57b (patch) | |
tree | 0327c5f5737addbf6c31d54363ec6587e87aa05f /src/parse/properties/elevation.c | |
parent | bcb95bf5fa2c5cfd2e7c80f211f7fd6db6ce2f9a (diff) | |
download | libcss-5ca8e29dcfc73b13a3c4c32e58619d9c486df57b.tar.gz libcss-5ca8e29dcfc73b13a3c4c32e58619d9c486df57b.tar.bz2 |
Saturated maths in css fixed point
svn path=/trunk/libcss/; revision=11975
Diffstat (limited to 'src/parse/properties/elevation.c')
-rw-r--r-- | src/parse/properties/elevation.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse/properties/elevation.c b/src/parse/properties/elevation.c index f3a48a4..0b5fdc4 100644 --- a/src/parse/properties/elevation.c +++ b/src/parse/properties/elevation.c @@ -98,17 +98,17 @@ css_error css__parse_elevation(css_language *c, /* Valid angles lie between -90 and 90 degrees */ if (unit == UNIT_DEG) { - if (length < FMULI(F_90, -1) || length > F_90) { + if (length < -F_90 || length > F_90) { *ctx = orig_ctx; return CSS_INVALID; } } else if (unit == UNIT_GRAD) { - if (length < FMULI(F_100, -1) || length > F_100) { + if (length < -F_100 || length > F_100) { *ctx = orig_ctx; return CSS_INVALID; } } else if (unit == UNIT_RAD) { - if (length < FMULI(F_PI_2, -1) || length > F_PI_2) { + if (length < -F_PI_2 || length > F_PI_2) { *ctx = orig_ctx; return CSS_INVALID; } |