# HG changeset patch # User Georges Racinet # Date 1558513622 0 # Node ID 4e4fa3a954069cc9f7cac35751e40d554af3346e # Parent 602469a915503e3996f21828ee34cb253922776f rust-dirstate: architecture independence fix Apparently, c_char is u8 on ppc64le and i8 on amd64 Differential Revision: https://phab.mercurial-scm.org/D6473 diff -r 602469a91550 -r 4e4fa3a95406 rust/hg-cpython/src/dirstate.rs --- a/rust/hg-cpython/src/dirstate.rs Tue May 14 22:20:10 2019 -0700 +++ b/rust/hg-cpython/src/dirstate.rs Wed May 22 08:27:02 2019 +0000 @@ -70,7 +70,7 @@ py, PyBytes::new(py, &filename[..]), decapsule_make_dirstate_tuple(py)?( - entry.state, + entry.state as c_char, entry.mode, entry.size, entry.mtime, @@ -170,7 +170,7 @@ py, PyBytes::new(py, &filename[..]), decapsule_make_dirstate_tuple(py)?( - state, mode, size, mtime, + state as c_char, mode, size, mtime, ), )?; }