From 184148b97861cb13728c1b7d6a8d8e909fc4cf90 Mon Sep 17 00:00:00 2001 From: Yan Zhou Date: Thu, 2 Feb 2017 19:30:23 +0800 Subject: =?UTF-8?q?Avoid=20more=20than=20one=20`inrange`=20when=20there?= =?UTF-8?q?=E2=80=99s=20no=20overlap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/luaotfload-database.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3