mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Actually output PyLong constants
This commit is contained in:
parent
df8db4da3c
commit
6a93c9f22d
4 changed files with 51 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue