Actually output PyLong constants

This commit is contained in:
Michael Hansen
2011-09-23 21:46:05 -07:00
parent df8db4da3c
commit 6a93c9f22d
4 changed files with 51 additions and 0 deletions

View File

@@ -178,6 +178,9 @@ void output_object(PycRef<PycObject> obj, PycModule* mod, int indent)
case PycObject::TYPE_INT:
iprintf(indent, "%d\n", obj.cast<PycInt>()->value());
break;
case PycObject::TYPE_LONG:
iprintf(indent, "%s\n", obj.cast<PycLong>()->repr().c_str());
break;
case PycObject::TYPE_FLOAT:
iprintf(indent, "%s\n", obj.cast<PycFloat>()->value());
break;