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/azimuth.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/azimuth.c')
-rw-r--r-- | src/parse/properties/azimuth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse/properties/azimuth.c b/src/parse/properties/azimuth.c index 76bc383..7df7298 100644 --- a/src/parse/properties/azimuth.c +++ b/src/parse/properties/azimuth.c @@ -198,17 +198,17 @@ css_error css__parse_azimuth(css_language *c, /* Valid angles lie between -360 and 360 degrees */ if (unit == UNIT_DEG) { - if (length < FMULI(F_360, -1) || length > F_360) { + if ((length < -F_360) || (length > F_360)) { *ctx = orig_ctx; return CSS_INVALID; } } else if (unit == UNIT_GRAD) { - if (length < FMULI(F_400, -1) || length > F_400) { + if ((length < -F_400) || (length > F_400)) { *ctx = orig_ctx; return CSS_INVALID; } } else if (unit == UNIT_RAD) { - if (length < FMULI(F_2PI, -1) || length > F_2PI) { + if ((length < -F_2PI) || (length > F_2PI)) { *ctx = orig_ctx; return CSS_INVALID; } |