Permalink
Browse files

Cast the int to number when comparing and not vice-versa

  • Loading branch information...
alexp-sssup committed Apr 21, 2011
1 parent e571919 commit 63af58554d5c4eca235ef68239124c3d875a3408
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripting/toplevel.cpp
View
@@ -1804,7 +1804,7 @@ bool Integer::isEqual(ASObject* o)
return val==o->toInt();
}
else if(o->getObjectType()==T_NUMBER)
return val==o->toInt();
return val==o->toNumber();
else
{
return ASObject::isEqual(o);

0 comments on commit 63af585

Please sign in to comment.