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:
@@ -223,7 +223,7 @@ void output_object(PycRef<PycObject> obj, PycModule* mod, int indent,
|
||||
iprintf(pyc_output, indent, "%d\n", obj.cast<PycInt>()->value());
|
||||
break;
|
||||
case PycObject::TYPE_LONG:
|
||||
iprintf(pyc_output, indent, "%s\n", obj.cast<PycLong>()->repr().c_str());
|
||||
iprintf(pyc_output, indent, "%s\n", obj.cast<PycLong>()->repr(mod).c_str());
|
||||
break;
|
||||
case PycObject::TYPE_FLOAT:
|
||||
iprintf(pyc_output, indent, "%s\n", obj.cast<PycFloat>()->value());
|
||||
|
||||
Reference in New Issue
Block a user