Mercurial > hg
comparison tests/test-double-merge.t @ 47975:ec178161a8d1
dirstate: make dirstate flags char be unsigned
Since https://phab.mercurial-scm.org/D11387, `CC='clang -Werror' make
local` has started failing like this:
```
mercurial/cext/util.h:41:50: error: implicit conversion from 'int' to 'char' changes value from 128 to -128 [-Werror,-Wconstant-conversion]
static const char dirstate_flag_rust_special = 1 << 7;
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~^~~~
```
This patch fixes that by making the flags be an unsigned char. That
also matches the `bool` typedef we have in `util.h`, which seems good
since many of the `dirstate_item_c_*()` functions return a `bool`.
Differential Revision: https://phab.mercurial-scm.org/D11444
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 16 Sep 2021 16:29:55 -0700 |
parents | 69429972ff1f |
children | 38941a28406a |
comparison
equal
deleted
inserted
replaced
47974:4e6f27230aee | 47975:ec178161a8d1 |
---|