summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-20 11:55:20 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-20 11:55:20 (GMT)
commit674d6a6972d7e49e64f3a94abd551a2445617227 (patch)
treeb0308056b099ea75e25488354648a41b93c652b9
parenta0364764fdaca63881dc78d8625e05d9880fc440 (diff)
parent26a1c7a905582d6b0b5fdb4070e7ad5d18ea8596 (diff)
downloadcpython-674d6a6972d7e49e64f3a94abd551a2445617227.zip
cpython-674d6a6972d7e49e64f3a94abd551a2445617227.tar.gz
cpython-674d6a6972d7e49e64f3a94abd551a2445617227.tar.bz2
Merge heads
-rw-r--r--Modules/_decimal/libmpdec/mpdecimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
index c7d4cbd1..d7ae41c 100644
--- a/Modules/_decimal/libmpdec/mpdecimal.c
+++ b/Modules/_decimal/libmpdec/mpdecimal.c
@@ -7540,7 +7540,7 @@ mpd_qsqrt(mpd_t *result, const mpd_t *a, const mpd_context_t *ctx,
ideal_exp += shift;
}
else {
- int lsd = mpd_lsd(result->data[0]);
+ int lsd = (int)mpd_lsd(result->data[0]);
if (lsd == 0 || lsd == 5) {
result->data[0] += 1;
}