disable 64-bit CheckedMul on 32-bit

code generation problem reported as issue #8449
This commit is contained in:
Daniel Micay
2013-08-11 02:58:52 -04:00
parent 076b91f8ad
commit 7db605cd15
+4 -2
View File
@@ -827,7 +827,8 @@ fn checked_mul(&self, v: &i32) -> Option<i32> {
}
}
#[cfg(not(stage0))]
// FIXME: #8449: should not be disabled on 32-bit
#[cfg(not(stage0), target_word_size = "64")]
impl CheckedMul for i64 {
#[inline]
fn checked_mul(&self, v: &i64) -> Option<i64> {
@@ -893,7 +894,8 @@ fn checked_mul(&self, v: &u32) -> Option<u32> {
}
}
#[cfg(not(stage0))]
// FIXME: #8449: should not be disabled on 32-bit
#[cfg(not(stage0), target_word_size = "64")]
impl CheckedMul for u64 {
#[inline]
fn checked_mul(&self, v: &u64) -> Option<u64> {