[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

Mark Dickinson report at bugs.python.org
Mon Nov 18 16:28:57 CET 2013


Mark Dickinson added the comment:

I don't much like the use of Py_SSIZE_T and Py_SAFE_DOWNCAST here:  the dtoa.c code knows almost nothing about Python.h (aside from right at the top), and I'd like to keep it that way if possible.

And in fact I'd say that we *shouldn't* be silencing these warnings; rather, we should take them seriously.  It looks to me as though it is possible for that conversion to overflow.

I'll try to take a look sometime soon.  Adding 2.7 and 3.3, since the bug is present there, too.

----------
versions: +Python 2.7, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19638>
_______________________________________


More information about the Python-bugs-list mailing list