summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins
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
parent4799b35d2457f1cfc746701ea347c89ae9887ca9 (diff)
downloaduscxml-91c81948221cac182e6f64a939983af2bb7a91b0.zip
uscxml-91c81948221cac182e6f64a939983af2bb7a91b0.tar.gz
uscxml-91c81948221cac182e6f64a939983af2bb7a91b0.tar.bz2
Fixed issue 141
Diffstat (limited to 'src/uscxml/plugins')
-rw-r--r--src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.cpp2
-rw-r--r--src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.cpp b/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.cpp
index 4203305..921f4cf 100644
--- a/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.cpp
+++ b/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.cpp
@@ -583,7 +583,7 @@ Data JSCDataModel::getValueAsData(const JSValueRef value) {
char* buf = new char[maxSize];
JSStringGetUTF8CString(stringValue, buf, maxSize);
std::string property(buf);
- if (!isNumeric(property.c_str(), 10))
+ if (!isInteger(property.c_str(), 10))
isArray = false;
propertySet.insert(property);
//JSStringRelease(stringValue); // JSPropertyNameArrayRelease does the job it seems
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 {