[cairo-commit] src/cairo-cff-subset.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Thu Aug 2 04:56:14 PDT 2007
src/cairo-cff-subset.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
New commits:
diff-tree f52aa4c13e91339e575ca2c52c9e3a1f4d95b106 (from ef93f1897c0703c3284c85206cb1c70e23ff3fe5)
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Thu Aug 2 21:25:46 2007 +0930
CFF Subsetting: fix integer encoding bug
Bug report at https://bugzilla.mozilla.org/show_bug.cgi?id=368668
diff --git a/src/cairo-cff-subset.c b/src/cairo-cff-subset.c
index 2adc709..55e0f15 100644
--- a/src/cairo-cff-subset.c
+++ b/src/cairo-cff-subset.c
@@ -158,7 +158,7 @@ encode_integer (unsigned char *p, int i)
i = -i - 108;
*p++ = (i >> 8)+ 251;
*p++ = i & 0xff;
- } else if (i >= -1131 && i <= -108) {
+ } else if (i >= -32768 && i <= 32767) {
*p++ = 28;
*p++ = (i >> 8) & 0xff;
*p++ = i & 0xff;
More information about the cairo-commit
mailing list