summaryrefslogtreecommitdiff
path: root/dev-lang/lua/files/lua-5.1.4-test.patch
blob: 4dcfbb9d69692fc1345ada7a99eea878eba6324e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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