D6473: rust-dirstate: architecture independence fix

2019-06-03 Thread Phabricator
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7f22b45ab36c: rust-dirstate: architecture independence fix 
(authored by 'Georges Racinet ', 
committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6473?vs=15325&id=15328

REVISION DETAIL
  https://phab.mercurial-scm.org/D6473

AFFECTED FILES
  rust/hg-cpython/src/dirstate.rs

CHANGE DETAILS

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 @@
 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,
 ),
 )?;
 }



To: gracinet, #hg-reviewers
Cc: durin42, kevincox, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D6473: rust-dirstate: architecture independence fix

2019-06-03 Thread gracinet (Georges Racinet)
gracinet created this revision.
Herald added subscribers: mercurial-devel, kevincox, durin42.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Apparently, c_char is u8 on ppc64le and i8 on amd64

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6473

AFFECTED FILES
  rust/hg-cpython/src/dirstate.rs

CHANGE DETAILS

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 @@
 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,
 ),
 )?;
 }



To: gracinet, #hg-reviewers
Cc: durin42, kevincox, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel