Skip to content

Commit e3d6fb7

Browse files
committed
1 parent 72d4f62 commit e3d6fb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ numbers to decimal strings.
1111
This Rust implementation is a line-by-line port of Victor Zverovich's
1212
implementation 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

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)