Mercurial > hg-stable
changeset 49054:a82f5d2b48fb
branching: merge stable into default
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 15 Mar 2022 09:26:26 +0100 |
parents | 7e18fc0bc46c (current diff) 9ce563fb2989 (diff) |
children | f64bbba2ee59 |
files | mercurial/cext/revlog.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cext/revlog.c Mon Mar 14 12:24:34 2022 -0700 +++ b/mercurial/cext/revlog.c Tue Mar 15 09:26:26 2022 +0100 @@ -168,7 +168,7 @@ /* next free offset: 73 */ static const char comp_mode_inline = 2; -static const char rank_unknown = -1; +static const int rank_unknown = -1; static void raise_revlog_error(void) {
--- a/rust/hg-core/src/lock.rs Mon Mar 14 12:24:34 2022 -0700 +++ b/rust/hg-core/src/lock.rs Tue Mar 15 09:26:26 2022 +0100 @@ -145,7 +145,7 @@ /// Same as https://github.com/python/cpython/blob/v3.10.0/Modules/socketmodule.c#L5414 const BUFFER_SIZE: usize = 1024; - let mut buffer = [0_i8; BUFFER_SIZE]; + let mut buffer = [0 as libc::c_char; BUFFER_SIZE]; let hostname_bytes = unsafe { let result = libc::gethostname(buffer.as_mut_ptr(), BUFFER_SIZE); if result != 0 {