This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ken.Cheung
Recipients Ken.Cheung
Date 2012-06-19.15:59:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340121561.65.0.31237517889.issue15107@psf.upfronthosting.co.za>
In-reply-to
Content
I observed a code clone from the following files.

function : mpd_qexp @ (file: "Python-3.3.0a4/Modules/_decimal/libmpdec/mpdecimal.c", line: 4092)~4165
function : mpd_qln @ (file: "Python-3.3.0a4/Modules/_decimal/libmpdec/mpdecimal.c", line: 4525)~4612

In the first few lines of this clone, the function mpd_qexp only calls mpd_setspecial when mpd_isnegative is false while the function mpd_qln calls mpd_setspecial independent of the value of mpd_isnegative. I wonder the checking is necessary in the function mpd_qln. The source code is included in the attachment. Hope it helps.
History
Date User Action Args
2012-06-19 15:59:21Ken.Cheungsetrecipients: + Ken.Cheung
2012-06-19 15:59:21Ken.Cheungsetmessageid: <1340121561.65.0.31237517889.issue15107@psf.upfronthosting.co.za>
2012-06-19 15:59:21Ken.Cheunglinkissue15107 messages
2012-06-19 15:59:20Ken.Cheungcreate