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

git-svn-id: http://yate.null.ro/svn/yate/trunk@5812 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2014-04-01 13:25:17 +00:00
parent 401d4b8793
commit 410dd9a8c6
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