summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal/libmpdec
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-07-20 10:34:18 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-07-20 10:34:18 (GMT)
commit26a1c7a905582d6b0b5fdb4070e7ad5d18ea8596 (patch)
tree8e0a0f32094c856cf8b139d596e924443fb61fe2 /Modules/_decimal/libmpdec
parent5e1658c5d7030d03148a4805ffb09d4374963580 (diff)
downloadcpython-26a1c7a905582d6b0b5fdb4070e7ad5d18ea8596.zip
cpython-26a1c7a905582d6b0b5fdb4070e7ad5d18ea8596.tar.gz
cpython-26a1c7a905582d6b0b5fdb4070e7ad5d18ea8596.tar.bz2
Fix Visual Studio warning.
Diffstat (limited to 'Modules/_decimal/libmpdec')
-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;
}