summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan Zhou <zhouyan@me.com>2017-02-02 19:30:23 +0800
committerYan Zhou <zhouyan@me.com>2017-02-02 19:30:23 +0800
commit184148b97861cb13728c1b7d6a8d8e909fc4cf90 (patch)
tree26d4bca35070c8e6af3323fb38b5b3e32e4ee44b
parent90acbbce3ff2b50929e18cb685961a1168f84075 (diff)
downloadluaotfload-184148b97861cb13728c1b7d6a8d8e909fc4cf90.tar.gz
Avoid more than one `inrange` when there’s no overlap
-rw-r--r--src/luaotfload-database.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 5e4fd7a..97fdfc1 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -928,7 +928,7 @@ local choose_size = function (sizes, askedsize)
--- exact match, this is what we were looking for
exact = index
goto skip
- elseif askedsize < low then
+ elseif askedsize <= low then
--- below range, add to the norange table
local d = low - askedsize
norange [#norange + 1] = { d, index }