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:
authorSoumith Chintala <soumith@gmail.com>2016-02-03 23:31:05 +0300
committerSoumith Chintala <soumith@gmail.com>2016-02-03 23:31:05 +0300
commit2939ae702ba4b76ff73794db52e63e532e1e3687 (patch)
tree9cbf8ab5ab59c80a6381dd1985d958401006d05e
parent381256dcca3a91cb80417e33345d51ed7fea6e9a (diff)
parent825ff338a65be4f5704e4a1e56482ceb01d37839 (diff)
Merge pull request #8 from torch/lua53
lua 5.3 fix
-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 = {}