summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/write.c b/write.c
index 223a431..b1397ff 100644
--- a/write.c
+++ b/write.c
@@ -875,7 +875,7 @@ writecmap(FILE* out, FontPtr font)
/* How baroque can you get? */
writeUSHORT(out, segcount * 2); /* segCountX2 */
writeUSHORT(out, 2 * two_log2_floor(segcount)); /* searchRange */
- writeUSHORT(out, 1 + log2_floor(segcount)); /* entrySelector */
+ writeUSHORT(out, log2_floor(segcount)); /* entrySelector */
writeUSHORT(out, 2 * (segcount - two_log2_floor(segcount)));
/* rangeShift */