aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lualib/lua_squeeze_rules.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/lualib/lua_squeeze_rules.lua b/lualib/lua_squeeze_rules.lua
index d351c5e20..1f442f819 100644
--- a/lualib/lua_squeeze_rules.lua
+++ b/lualib/lua_squeeze_rules.lua
@@ -47,7 +47,11 @@ local function gen_lua_squeeze_function(order)
end
elseif type(first) == 'number' then
table.remove(ret, 1)
- task:insert_result(sym, first, ret)
+
+ if first ~= 0 then
+ task:insert_result(sym, first, ret)
+ end
+ end
else
task:insert_result(sym, 1.0, ret)
end