|
@@ -304,11 +304,11 @@ int Xml_eval(lua_State *L) {
|
|
|
|
|
|
while((token=Tokenizer_next(tok))!=0) if(token[0]==OPN) { // new tag found
|
|
|
if(lua_gettop(L)) {
|
|
|
- int newIndex=lua_rawlen(L,-1)+1;
|
|
|
- lua_pushnumber(L,newIndex);
|
|
|
+ size_t newIndex=lua_rawlen(L,-1)+1;
|
|
|
+ lua_pushnumber(L, (lua_Number)newIndex);
|
|
|
lua_newtable(L);
|
|
|
lua_settable(L, -3);
|
|
|
- lua_pushnumber(L,newIndex);
|
|
|
+ lua_pushnumber(L, (lua_Number)newIndex);
|
|
|
lua_gettable(L,-2);
|
|
|
}
|
|
|
else {
|
|
@@ -360,7 +360,7 @@ int Xml_eval(lua_State *L) {
|
|
|
else break;
|
|
|
}
|
|
|
else { // read elements
|
|
|
- lua_pushnumber(L,lua_rawlen(L,-1)+1);
|
|
|
+ lua_pushnumber(L,(lua_Number)lua_rawlen(L,-1)+1);
|
|
|
Xml_pushDecode(L, token, 0);
|
|
|
lua_settable(L, -3);
|
|
|
}
|