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

github.com/Yonaba/Moses.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--moses.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses.lua b/moses.lua
index 264fac1..1e4b1b3 100644
--- a/moses.lua
+++ b/moses.lua
@@ -2208,7 +2208,7 @@ do
-- Register all functions into the wrapper
for fname,fct in pairs(_) do
f[fname] = function(v, ...)
- local wrapped = _.isTable(v) and v._wrapped or false
+ local wrapped = _.isTable(v) and rawget(v,'_wrapped') or false
if wrapped then
local _arg = v._value
local _rslt = fct(_arg,...)