New submission from Ken Cheung <msrbugzi...@gmail.com>:

I observed a code clone from the following files.

function : mpd_qdivint @ (file: 
"Python-3.3.0a2/Modules/_decimal/libmpdec/mpdecimal.c", line: 3727)~3763
function : mpd_qrem @ (file: 
"Python-3.3.0a2/Modules/_decimal/libmpdec/mpdecimal.c", line: 6331)~6361

The function mpd_qdivint checks the condition "mpd_isinfinite(a) && 
mpd_isinfinite(b)" while mpd_qrem does not. I wonder if this is necessary in 
mpd_qrem. The source code is included in the attachment. Hope it helps.

----------
components: Library (Lib)
files: mpdecimal_clone.txt
messages: 162717
nosy: Ken.Cheung
priority: normal
severity: normal
status: open
title: Potential Bugs in mpd_qdivint and mpd_qrem
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file25949/mpdecimal_clone.txt

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15057>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to