File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -279,13 +279,13 @@ macro_rules! float_trait_impl {
279
279
match c. to_digit( radix) {
280
280
Some ( digit) => {
281
281
// shift significand one digit left
282
- sig = sig * ( radix as $t) ;
282
+ sig *= radix as $t;
283
283
284
284
// add/subtract current digit depending on sign
285
285
if is_positive {
286
- sig = sig + ( ( digit as isize ) as $t) ;
286
+ sig += ( digit as isize ) as $t;
287
287
} else {
288
- sig = sig - ( ( digit as isize ) as $t) ;
288
+ sig -= ( digit as isize ) as $t;
289
289
}
290
290
291
291
// Detect overflow by comparing to last value, except
@@ -327,7 +327,7 @@ macro_rules! float_trait_impl {
327
327
match c. to_digit( radix) {
328
328
Some ( digit) => {
329
329
// Decrease power one order of magnitude
330
- power = power / ( radix as $t) ;
330
+ power /= radix as $t;
331
331
// add/subtract current digit depending on sign
332
332
sig = if is_positive {
333
333
sig + ( digit as $t) * power
You can’t perform that action at this time.
0 commit comments