decimal
decimal copied to clipboard
compilation fails on ppc64le, s390x, aarch64, armv7hl
error[E0308]: mismatched types
--> src/dec128.rs:229:35
|
229 | decQuadToString(self, buf.as_mut().as_mut_ptr());
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found i8
|
= note: expected type `*mut u8`
found type `*mut i8`
error[E0308]: mismatched types
--> src/dec128.rs:230:39
|
230 | let cstr = CStr::from_ptr(buf.as_ptr());
| ^^^^^^^^^^^^ expected u8, found i8
|
= note: expected type `*const u8`
found type `*const i8`
error[E0308]: mismatched types
--> src/dec128.rs:249:38
|
249 | decQuadToEngString(self, buf.as_mut().as_mut_ptr());
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found i8
|
= note: expected type `*mut u8`
found type `*mut i8`
error[E0308]: mismatched types
--> src/dec128.rs:250:39
|
250 | let cstr = CStr::from_ptr(buf.as_ptr());
| ^^^^^^^^^^^^ expected u8, found i8
|
= note: expected type `*const u8`
found type `*const i8`
error: aborting due to 4 previous errors
Yep, same
Presumably this has been fixed in #42. It would be nice to have a release that has this though.
@alkis, this fix is in master, can you bump the latest release to include it?
I think this can be closed now, since 2.1.0 has been released since the last update to this issue.