projects
/
framework
/
uifw
/
harfbuzz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cdb317b
)
[GSUB] minor
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 6 May 2009 04:25:59 +0000
(
00:25
-0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 2 Nov 2009 19:40:07 +0000
(14:40 -0500)
src/hb-ot-layout-open-private.h
patch
|
blob
|
history
diff --git
a/src/hb-ot-layout-open-private.h
b/src/hb-ot-layout-open-private.h
index
da2da95
..
d2e1839
100644
(file)
--- a/
src/hb-ot-layout-open-private.h
+++ b/
src/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
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;
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
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;
int classValue = rangeRecord[i].get_class (glyph_id);
if (classValue > 0)
return classValue;