Alternative solution using union

This commit is contained in:
Zlodiy
2014-06-05 12:26:16 +11:00
parent eb11934f6a
commit f3100a8bd1

View File

@@ -85,7 +85,7 @@ public:
bool isEqual(PycRef<PycObject> obj) const
{
return (type() == obj->type()) &&
(m_value.d == obj.cast<PycCFloat>()->m_value);
(m_value == obj.cast<PycCFloat>()->m_value);
}
void load(class PycData* stream, class PycModule* mod);