summaryrefslogtreecommitdiff
path: root/src/parse/properties/azimuth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/properties/azimuth.c')
-rw-r--r--src/parse/properties/azimuth.c6
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;
}