Fixed the type of the result of Array.indexOf(), must be number.

git-svn-id: http://voip.null.ro/svn/yate@5812 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2014-04-01 13:25:17 +00:00
parent 6e84797148
commit 33b29c43ae
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ bool JsArray::runNative(ObjList& stack, const ExpOperation& oper, GenObject* con
}
}
TelEngine::destruct(op1);
ExpEvaluator::pushOne(stack,new ExpOperation(String(index)));
ExpEvaluator::pushOne(stack,new ExpOperation((int64_t)index));
return true;
}
else