Skip to content

Commit 5577a60

Browse files
nivkneralkis
authored andcommitted
allow build on aarch64 (#42)
This fixes #37.
1 parent 8c28def commit 5577a60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dec128.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl Into<u32> for d128 {
224224
/// payload is 0.
225225
impl fmt::Display for d128 {
226226
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
227-
let mut buf = [0 as i8; 43];
227+
let mut buf = [0; 43];
228228
unsafe {
229229
decQuadToString(self, buf.as_mut().as_mut_ptr());
230230
let cstr = CStr::from_ptr(buf.as_ptr());
@@ -244,7 +244,7 @@ impl fmt::Debug for d128 {
244244
/// exponential notation is used the exponent will be a multiple of 3.
245245
impl fmt::LowerExp for d128 {
246246
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
247-
let mut buf = [0 as i8; 43];
247+
let mut buf = [0; 43];
248248
unsafe {
249249
decQuadToEngString(self, buf.as_mut().as_mut_ptr());
250250
let cstr = CStr::from_ptr(buf.as_ptr());

0 commit comments

Comments
 (0)