Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cwrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cinterface.lua')
-rw-r--r--cinterface.lua2
1 files changed, 1 insertions, 1 deletions
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 = {}