gentoo/dev-lang/lua/files/lua-5.1.4-test.patch
Marek Szuba b254a1f573
dev-lang/lua: fix malformed lua-5.1.4-test.patch
This patch has been like this at least since the migration from CVS to Git
but epatch was apparently able to work around the patch author having used
a backup file as diff source, and even for Lua ebuilds using eapply this
was only triggered by disabling USE=-deprecated.

Thanks to Arfrever for the heads-up.

Signed-off-by: Marek Szuba <marecki@gentoo.org>
2020-12-07 14:12:23 +01:00

12 lines
271 B
Diff

--- a/test/sieve.lua
+++ b/test/sieve.lua
@@ -14,7 +14,7 @@
while 1 do
local n = g()
if n == nil then return end
- if math.mod(n, p) ~= 0 then coroutine.yield(n) end
+ if math.fmod(n, p) ~= 0 then coroutine.yield(n) end
end
end)
end