[issue1621] Do not assume signed integer overflow behavior
Ismail Donmez
report at bugs.python.org
Mon Jan 28 04:02:23 CET 2008
Ismail Donmez added the comment:
Neal,
I'll try to answer your questions one by one, first with _csv.c compiler
issues :
Modules/_csv.c:969: warning: assuming signed overflow does not occur
when simplifying conditional to constant
There is a check inside loop like this:
if (c == '\0')
break;
Instead of this if we do the check in the for :
+ for (i = 0; i < strlen(field) ; i++) {
and remove the if check compiler no longer issues a warning also csv
test passes with this. Attached patch implements this optimization.
Guido, you don't have to shout, you know noone pays me per python
bugreport I create :)
Added file: http://bugs.python.org/file9307/csv.patch
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1621>
__________________________________
More information about the Python-bugs-list
mailing list