changeset 14160 | 37c99587825d |
parent 14143 | c27461e6a9eb |
child 14161 | 3078123e84ea |
--- a/rust/fpnum/src/lib.rs Mon Nov 05 23:15:56 2018 +0300 +++ b/rust/fpnum/src/lib.rs Mon Nov 05 21:36:28 2018 +0100 @@ -47,11 +47,11 @@ } #[inline] - pub fn round(&self) -> i64 { + pub fn round(&self) -> i32 { if self.is_negative { - -((self.value >> 32) as i64) + -((self.value >> 32) as i32) } else { - (self.value >> 32) as i64 + (self.value >> 32) as i32 } }