@@ -151,7 +151,6 @@ inline bool is_type(PyObject* obj, Type type) {
#endif
switch(type.index){
case kTpIntIndex: return is_int(obj);
- case kTpFloatIndex: return is_float(obj);
default: return !is_tagged(obj) && obj->type == type;
}
@@ -367,8 +367,7 @@ public:
Type _tp(PyObject* obj){
if(!is_tagged(obj)) return obj->type;
- if(is_int(obj)) return tp_int;
- return tp_float;
+ return tp_int;
PyObject* _t(PyObject* obj){