mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Fix Long Numeric Integer representation for Python 3
Before Python 3, long integers were input with an L suffix. Since Python 3, all integers are 64-bit and do not need the L suffix.
This commit is contained in:
parent
513e03c883
commit
2ae7f58a26
4 changed files with 7 additions and 6 deletions
|
|
@ -230,7 +230,7 @@ void print_const(std::ostream& pyc_output, PycRef<PycObject> obj, PycModule* mod
|
|||
formatted_print(pyc_output, "%d", obj.cast<PycInt>()->value());
|
||||
break;
|
||||
case PycObject::TYPE_LONG:
|
||||
formatted_print(pyc_output, "%s", obj.cast<PycLong>()->repr().c_str());
|
||||
formatted_print(pyc_output, "%s", obj.cast<PycLong>()->repr(mod).c_str());
|
||||
break;
|
||||
case PycObject::TYPE_FLOAT:
|
||||
formatted_print(pyc_output, "%s", obj.cast<PycFloat>()->value());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue