# HG changeset patch # User Georges Racinet # Date 2019-05-22 08:27:02 # 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 --git a/rust/hg-cpython/src/dirstate.rs b/rust/hg-cpython/src/dirstate.rs --- a/rust/hg-cpython/src/dirstate.rs +++ b/rust/hg-cpython/src/dirstate.rs @@ -70,7 +70,7 @@ fn parse_dirstate_wrapper( 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 @@ fn pack_dirstate_wrapper( py, PyBytes::new(py, &filename[..]), decapsule_make_dirstate_tuple(py)?( - state, mode, size, mtime, + state as c_char, mode, size, mtime, ), )?; }