projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e88e144
)
Minor
author
Behdad Esfahbod
<behdad@behdad.org>
Sat, 9 Jun 2012 00:56:05 +0000
(20:56 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Sat, 9 Jun 2012 00:56:05 +0000
(20:56 -0400)
src/hb-buffer.cc
patch
|
blob
|
history
diff --git
a/src/hb-buffer.cc
b/src/hb-buffer.cc
index
34d2300
..
5c8b9e8
100644
(file)
--- a/
src/hb-buffer.cc
+++ b/
src/hb-buffer.cc
@@
-416,7
+416,7
@@
void
hb_buffer_t::merge_clusters (unsigned int start,
unsigned int end)
{
- if (unlikely (
start >= end
))
+ if (unlikely (
end - start < 2
))
return;
unsigned int cluster = info[start].cluster;
@@
-444,7
+444,7
@@
void
hb_buffer_t::merge_out_clusters (unsigned int start,
unsigned int end)
{
- if (unlikely (
start >= end
))
+ if (unlikely (
end - start < 2
))
return;
unsigned int cluster = out_info[start].cluster;