From e903e021e4b6c7adabea47682c861dcb3326bc19 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Tue, 10 Feb 2009 07:30:56 +0000 Subject: Adding explicit parenthesis to remove warnings (bzr r7261) --- src/helper/units.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helper/units.cpp') diff --git a/src/helper/units.cpp b/src/helper/units.cpp index 3e632a0ca..47c4746ac 100644 --- a/src/helper/units.cpp +++ b/src/helper/units.cpp @@ -137,8 +137,8 @@ sp_convert_distance(gdouble *distance, SPUnit const *from, SPUnit const *to) if ((from->base == SP_UNIT_VOLATILE) || (to->base == SP_UNIT_VOLATILE)) return FALSE; if ((from->base == to->base) - || (from->base == SP_UNIT_DEVICE) && (to->base == SP_UNIT_ABSOLUTE) - || (from->base == SP_UNIT_ABSOLUTE) && (to->base == SP_UNIT_DEVICE)) + || ((from->base == SP_UNIT_DEVICE) && (to->base == SP_UNIT_ABSOLUTE)) + || ((from->base == SP_UNIT_ABSOLUTE) && (to->base == SP_UNIT_DEVICE))) { *distance = *distance * from->unittobase / to->unittobase; return TRUE; -- cgit v1.2.3