decimal icon indicating copy to clipboard operation
decimal copied to clipboard

compilation fails on ppc64le, s390x, aarch64, armv7hl

Open ignatenkobrain opened this issue 5 years ago • 4 comments

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

ignatenkobrain avatar Sep 11 '18 12:09 ignatenkobrain

Yep, same

skyne98 avatar Mar 28 '19 19:03 skyne98

Presumably this has been fixed in #42. It would be nice to have a release that has this though.

ghost avatar May 23 '19 06:05 ghost

@alkis, this fix is in master, can you bump the latest release to include it?

finagolfin avatar Apr 28 '20 02:04 finagolfin

I think this can be closed now, since 2.1.0 has been released since the last update to this issue.

tari avatar Jul 13 '22 05:07 tari