[pango/harfbuzz-ng: 12/17] [GSUB] minor
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Subject: [pango/harfbuzz-ng: 12/17] [GSUB] minor
- Date: Tue, 12 May 2009 03:31:18 -0400 (EDT)
commit 24eb2f6e5bbde72b27f33a816d22cced57b9bbc2
Author: Behdad Esfahbod <behdad behdad org>
Date: Wed May 6 00:25:59 2009 -0400
[GSUB] minor
---
pango/opentype/hb-ot-layout-open-private.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/pango/opentype/hb-ot-layout-open-private.h b/pango/opentype/hb-ot-layout-open-private.h
index da2da95..d2e1839 100644
--- a/pango/opentype/hb-ot-layout-open-private.h
+++ b/pango/opentype/hb-ot-layout-open-private.h
@@ -768,7 +768,8 @@ struct CoverageFormat2 {
inline unsigned int get_coverage (hb_codepoint_t glyph_id) const {
// TODO: bsearch
- for (unsigned int i = 0; i < rangeCount; i++) {
+ unsigned int count = rangeCount;
+ for (unsigned int i = 0; i < count; i++) {
int coverage = rangeRecord[i].get_coverage (glyph_id);
if (coverage >= 0)
return coverage;
@@ -867,7 +868,8 @@ struct ClassDefFormat2 {
inline hb_ot_layout_class_t get_class (hb_codepoint_t glyph_id) const {
// TODO: bsearch
- for (unsigned int i = 0; i < rangeCount; i++) {
+ unsigned int count = rangeCount;
+ for (unsigned int i = 0; i < count; i++) {
int classValue = rangeRecord[i].get_class (glyph_id);
if (classValue > 0)
return classValue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]