Minor
This commit is contained in:
parent
0b99429ead
commit
dadede012e
|
@ -34,7 +34,7 @@
|
||||||
#include "hb-set-private.hh"
|
#include "hb-set-private.hh"
|
||||||
|
|
||||||
|
|
||||||
#define NOT_COVERED ((unsigned int) 0x110000)
|
#define NOT_COVERED ((unsigned int) -1)
|
||||||
#define MAX_NESTING_LEVEL 8
|
#define MAX_NESTING_LEVEL 8
|
||||||
|
|
||||||
|
|
||||||
|
@ -348,9 +348,8 @@ struct CoverageFormat1
|
||||||
inline unsigned int get_coverage (hb_codepoint_t glyph_id) const
|
inline unsigned int get_coverage (hb_codepoint_t glyph_id) const
|
||||||
{
|
{
|
||||||
int i = glyphArray.search (glyph_id);
|
int i = glyphArray.search (glyph_id);
|
||||||
if (i != -1)
|
ASSERT_STATIC (((unsigned int) -1) == NOT_COVERED);
|
||||||
return i;
|
return i;
|
||||||
return NOT_COVERED;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool sanitize (hb_sanitize_context_t *c) {
|
inline bool sanitize (hb_sanitize_context_t *c) {
|
||||||
|
|
|
@ -1533,7 +1533,7 @@ struct PosLookup : Lookup
|
||||||
while (c->buffer->idx < c->buffer->len)
|
while (c->buffer->idx < c->buffer->len)
|
||||||
{
|
{
|
||||||
if ((c->buffer->cur().mask & c->lookup_mask) &&
|
if ((c->buffer->cur().mask & c->lookup_mask) &&
|
||||||
(*coverage) (c->buffer->cur().codepoint) != NOT_COVERED &&
|
coverage->get_coverage (c->buffer->cur().codepoint) != NOT_COVERED &&
|
||||||
apply_once (c))
|
apply_once (c))
|
||||||
ret = true;
|
ret = true;
|
||||||
else
|
else
|
||||||
|
|
|
@ -1210,7 +1210,7 @@ struct SubstLookup : Lookup
|
||||||
while (c->buffer->idx < c->buffer->len)
|
while (c->buffer->idx < c->buffer->len)
|
||||||
{
|
{
|
||||||
if ((c->buffer->cur().mask & c->lookup_mask) &&
|
if ((c->buffer->cur().mask & c->lookup_mask) &&
|
||||||
(*coverage) (c->buffer->cur().codepoint) != NOT_COVERED &&
|
coverage->get_coverage (c->buffer->cur().codepoint) != NOT_COVERED &&
|
||||||
apply_once (c))
|
apply_once (c))
|
||||||
ret = true;
|
ret = true;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue