[cairo-commit] cairo/src cairo-fixed.c,1.10,1.11
Carl Worth
commit at pdx.freedesktop.org
Thu Aug 18 09:46:23 PDT 2005
Committed by: cworth
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv24778/src
Modified Files:
cairo-fixed.c
Log Message:
2005-08-18 Carl Worth <cworth at cworth.org>
* src/cairo-fixed.c: (_cairo_fixed_integer_ceil): Fix to not
right-shift a negative number when called with an argument of 0.
Index: cairo-fixed.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-fixed.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- cairo-fixed.c 22 Feb 2005 19:35:03 -0000 1.10
+++ cairo-fixed.c 18 Aug 2005 16:46:20 -0000 1.11
@@ -84,7 +84,7 @@
int
_cairo_fixed_integer_ceil (cairo_fixed_t f)
{
- if (f >= 0)
+ if (f > 0)
return ((f - 1)>>16) + 1;
else
return - (-f >> 16);
More information about the cairo-commit
mailing list