Ticket #592 (closed defect: fixed)
Large integer literals/constants can generate invalid C code
| Reported by: | scoder | Owned by: | scoder |
|---|---|---|---|
| Priority: | major | Milestone: | 0.14 |
| Component: | Code Generation | Keywords: | |
| Cc: |
Description
The perfectly valid Python code
def test():
return 1L << 200
generates either
PyInt_FromLong(1L << 200)
without constant folding, or
PyInt_FromLong(1606938044258990275541962092341162602522202993782792835301376)
with constant folding enabled. Both do not work in C.
Change History
Note: See
TracTickets for help on using
tickets.
