From 825ff338a65be4f5704e4a1e56482ceb01d37839 Mon Sep 17 00:00:00 2001 From: Soumith Chintala Date: Wed, 3 Feb 2016 15:21:24 -0500 Subject: [PATCH] lua 5.3 fix --- cinterface.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinterface.lua b/cinterface.lua index e2e2050..ebf1171 100644 --- a/cinterface.lua +++ b/cinterface.lua @@ -263,7 +263,7 @@ function CInterface:__writechecks(txt, args, argset) end end - for variant=0,math.pow(2, nopt)-1 do + for variant=0,(2^nopt)-1 do local opt = 0 local currentargs = {} local optargs = {}