File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ numbers to decimal strings.
1111This Rust implementation is a line-by-line port of Victor Zverovich's
1212implementation in C++, [ https://github.com/vitaut/zmij ] [ upstream ] .
1313
14- [ upstream ] : https://github.com/vitaut/zmij/tree/98d01d3bc6aceb80b8420ea13874e0ae9af0c9e8
14+ [ upstream ] : https://github.com/vitaut/zmij/tree/408ebfb0c70579895e12864aeb00561ef15729e3
1515
1616## Example
1717
Original file line number Diff line number Diff line change @@ -636,7 +636,7 @@ unsafe fn write_significand17(
636636 // zero. buffer points to the second place in the output buffer to allow
637637 // for the insertion of the decimal point, so we can use the first place
638638 // as scratch.
639- buffer = unsafe { buffer. add ( usize :: from ( has17digits) ) } ;
639+ buffer = unsafe { buffer. offset ( isize :: from ( has17digits) - 1 ) } ;
640640 unsafe {
641641 * buffer. add ( 16 ) = last_digit as u8 + b'0' ;
642642 }
You can’t perform that action at this time.
0 commit comments