summaryrefslogtreecommitdiff
path: root/src/cairo-fixed.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-08-18 09:46:20 +0000
committerCarl Worth <cworth@cworth.org>2005-08-18 09:46:20 +0000
commita82cf0eb7bdfb7f500c1652f6b9635a94e830289 (patch)
treeefcc5a51ba17d46121edba353a8522b4d89222ee /src/cairo-fixed.c
parent7a9d2070402d75356ffee258517c5434dc232000 (diff)
Fix to not right-shift a negative number when called with an argument of 0.
Diffstat (limited to 'src/cairo-fixed.c')
-rw-r--r--src/cairo-fixed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-fixed.c b/src/cairo-fixed.c
index a4faa1708..2c1c58725 100644
--- a/src/cairo-fixed.c
+++ b/src/cairo-fixed.c
@@ -84,7 +84,7 @@ _cairo_fixed_integer_floor (cairo_fixed_t f)
int
_cairo_fixed_integer_ceil (cairo_fixed_t f)
{
- if (f >= 0)
+ if (f > 0)
return ((f - 1)>>16) + 1;
else
return - (-f >> 16);