Don't create special objects for NULL, just use NULL directly.
Also move null check into PycRef for nullable references.
This commit is contained in:
@@ -13,7 +13,7 @@ public:
|
||||
|
||||
bool isEqual(PycRef<PycObject> obj) const
|
||||
{
|
||||
return (type() == obj->type()) &&
|
||||
return (type() == obj.type()) &&
|
||||
(m_value == obj.cast<PycInt>()->m_value);
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
|
||||
bool isEqual(PycRef<PycObject> obj) const
|
||||
{
|
||||
return (type() == obj->type()) &&
|
||||
return (type() == obj.type()) &&
|
||||
(m_value == obj.cast<PycCFloat>()->m_value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user