diff options
author | Lua Team <team@lua.org> | 2010-01-08 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2010-01-08 12:00:00 +0000 |
commit | 22912c77c80f8de8f7accd3319c726f7c5349fd3 (patch) | |
tree | caf064ecca31cd2ef1c919c585ee6b3d5e6d25d6 /test/sieve.lua | |
parent | 300cd56eb905be061aa75bb665549b3b85109bbe (diff) | |
download | lua-github-5.2.0-work1.tar.gz |
Lua 5.2.0-work15.2.0-work1
Diffstat (limited to 'test/sieve.lua')
-rw-r--r-- | test/sieve.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sieve.lua b/test/sieve.lua index 0871bb21..e27c1a20 100644 --- a/test/sieve.lua +++ b/test/sieve.lua @@ -14,7 +14,7 @@ function filter (p, g) while 1 do local n = g() if n == nil then return end - if math.mod(n, p) ~= 0 then coroutine.yield(n) end + if n % p ~= 0 then coroutine.yield(n) end end end) end |