mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 14:18:42 +01:00
Fix off-by-one error in arg checking.
This commit is contained in:
@ -77,7 +77,7 @@ def build_libuv(arch, out):
|
||||
def main(args):
|
||||
expect_usage(len(args) >= 1 and len(args) <= 2)
|
||||
|
||||
arch = "" if len(args) < 2 else args[2]
|
||||
arch = "" if len(args) < 2 else args[1]
|
||||
out = os.path.join("build", "libuv" + arch + ".a")
|
||||
|
||||
build_libuv(arch, out)
|
||||
|
||||
Reference in New Issue
Block a user