Actually output PyLong constants

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

View file

@ -243,6 +243,9 @@ void print_const(PycRef<PycObject> obj, PycModule* mod)
case PycObject::TYPE_INT:
printf("%d", obj.cast<PycInt>()->value());
break;
case PycObject::TYPE_LONG:
printf("%s", obj.cast<PycLong>()->repr().c_str());
break;
case PycObject::TYPE_FLOAT:
printf("%s", obj.cast<PycFloat>()->value());
break;