mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 22:41:27 +00:00
Use literal bools when possible rather than ints.
This commit is contained in:
parent
8974fe484b
commit
1bddeb974f
3 changed files with 4 additions and 4 deletions
|
@ -149,7 +149,7 @@ buffer_verify_unsafe_to_break (hb_buffer_t *buffer,
|
|||
}
|
||||
assert (text_start < text_end);
|
||||
|
||||
if (0)
|
||||
if (false)
|
||||
printf("start %u end %u text start %u end %u\n", start, end, text_start, text_end);
|
||||
|
||||
hb_buffer_clear_contents (fragment);
|
||||
|
@ -288,7 +288,7 @@ buffer_verify_unsafe_to_concat (hb_buffer_t *buffer,
|
|||
}
|
||||
assert (text_start < text_end);
|
||||
|
||||
if (0)
|
||||
if (false)
|
||||
printf("start %u end %u text start %u end %u\n", start, end, text_start, text_end);
|
||||
|
||||
#if 0
|
||||
|
|
|
@ -1979,7 +1979,7 @@ struct cmap
|
|||
hb_codepoint_t *glyph,
|
||||
cache_t *cache = nullptr) const
|
||||
{
|
||||
if (unlikely (!this->get_glyph_funcZ)) return 0;
|
||||
if (unlikely (!this->get_glyph_funcZ)) return false;
|
||||
return _cached_get (unicode, glyph, cache);
|
||||
}
|
||||
|
||||
|
|
|
@ -357,7 +357,7 @@ struct AxisValue
|
|||
case 2: return u.format2.get_value ();
|
||||
case 3: return u.format3.get_value ();
|
||||
case 4: return u.format4.get_axis_record (axis_index).get_value ();
|
||||
default:return 0;
|
||||
default:return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue