From af349ee3487b31c2328f0a37a43d31b248ed14e5 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 30 Nov 2018 23:20:50 -0500 Subject: [PATCH] Fix warning --- src/hb-ot-cff-common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-cff-common.hh b/src/hb-ot-cff-common.hh index 5ec1361..a83435d 100644 --- a/src/hb-ot-cff-common.hh +++ b/src/hb-ot-cff-common.hh @@ -233,7 +233,7 @@ struct CFFIndex inline unsigned int max_offset (void) const { unsigned int max = 0; - for (unsigned int i = 0; i <= count; i++) + for (unsigned int i = 0; i < count + 1; i++) { unsigned int off = offset_at (i); if (off > max) max = off; -- 2.7.4