Mercurial > hg
changeset 42408:4e4fa3a95406
rust-dirstate: architecture independence fix
Apparently, c_char is u8 on ppc64le and i8 on amd64
Differential Revision: https://phab.mercurial-scm.org/D6473
author | Georges Racinet <georges.racinet@octobus.net> |
---|---|
date | Wed, 22 May 2019 08:27:02 +0000 |
parents | 602469a91550 |
children | 72522fe7fb95 |
files | rust/hg-cpython/src/dirstate.rs |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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, ), )?; }