summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/datamodel/lua
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-05-29 13:45:06 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-05-29 13:45:06 (GMT)
commit91c81948221cac182e6f64a939983af2bb7a91b0 (patch)
tree81458a9db1f4664df4896ee8fc4a6d74ba8551c7 /src/uscxml/plugins/datamodel/lua
parent4799b35d2457f1cfc746701ea347c89ae9887ca9 (diff)
downloaduscxml-91c81948221cac182e6f64a939983af2bb7a91b0.zip
uscxml-91c81948221cac182e6f64a939983af2bb7a91b0.tar.gz
uscxml-91c81948221cac182e6f64a939983af2bb7a91b0.tar.bz2
Fixed issue 141
Diffstat (limited to 'src/uscxml/plugins/datamodel/lua')
-rw-r--r--src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp b/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp
index de3078b..4f78e7d 100644
--- a/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp
+++ b/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp
@@ -163,7 +163,7 @@ static luabridge::LuaRef getDataAsLua(lua_State* _luaState, const Data& data) {
luaData = luabridge::newTable(_luaState);
std::map<std::string, Data>::const_iterator compoundIter = data.compound.begin();
while(compoundIter != data.compound.end()) {
- if (isNumeric(compoundIter->first.c_str(), 10) && strTo<size_t>(compoundIter->first) > 0) {
+ if (isInteger(compoundIter->first.c_str(), 10) && strTo<size_t>(compoundIter->first) > 0) {
// it makes a difference whether we pass a numeric string or a proper number!
luaData[strTo<size_t>(compoundIter->first)] = getDataAsLua(_luaState, compoundIter->second);
} else {