Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit cd41501

Browse files
committed
update
1 parent aa97361 commit cd41501

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/math/generic/scalbn.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
use super::super::support::Hexf;
55
use super::super::{CastFrom, CastInto, Float, IntTy, MinInt};
66

7-
// extern crate std;
8-
// use std::dbg;
7+
extern crate std;
8+
use std::dbg;
99

10-
macro_rules! dbg {
11-
($($tt:tt)*) => {};
12-
}
10+
// macro_rules! dbg {
11+
// ($($tt:tt)*) => {};
12+
// }
1313

1414
/// Scale the exponent.
1515
///
@@ -91,7 +91,7 @@ where
9191
x *= mul;
9292
n += add;
9393
dbg!(Hexf(x), n);
94-
if n < exp_min {
94+
if n < exp_min + sig_total_bits as i32 {
9595
x *= mul;
9696
n += add;
9797
dbg!(Hexf(x), n);
@@ -142,7 +142,7 @@ where
142142
}
143143
}
144144
}
145-
} else if n < exp_min {
145+
} else if n < exp_min + sig_total_bits as i32 {
146146
n = exp_min;
147147
b = true;
148148
dbg!(Hexf(x), n);

0 commit comments

Comments
 (0)