Fixed Array.length & proto functions.

git-svn-id: svn://10.0.0.236/trunk@138036 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2003-02-20 16:17:49 +00:00
parent 3f01246d39
commit 63ae1fcbf1
10 changed files with 77 additions and 38 deletions

View File

@@ -223,7 +223,7 @@ namespace MetaData {
// otherwise get a double value
js2val JS2Engine::allocNumber(float64 x)
{
uint32 i;
int32 i;
js2val retval;
if (JSDOUBLE_IS_INT(x, i) && INT_FITS_IN_JS2VAL(i))
retval = INT_TO_JS2VAL(i);