summaryrefslogtreecommitdiffstats
path: root/chksums/sha256.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-02-22 06:51:52 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-02-22 06:51:52 -0800
commitc38dbf7975d0df4758b295b90a47c1dbaaeaa976 (patch)
treee78af52c4971974ba157469e7d656e6f1ff71d94 /chksums/sha256.c
parentde1cce6d446c38fde590cac2531560742d446043 (diff)
downloadtxr-c38dbf7975d0df4758b295b90a47c1dbaaeaa976.tar.gz
txr-c38dbf7975d0df4758b295b90a47c1dbaaeaa976.tar.bz2
txr-c38dbf7975d0df4758b295b90a47c1dbaaeaa976.zip
gc: c++ fix in type_t conversion.
* gc.c (sweep_one): The recent fix to address the clang diagnostic from -fsanitize=implicit-conversion broke C++ compatibility, due to enums being type safe. We revert the expression to the original, before that fix, and address the clang diagnostic differently. * gc.h (REACHABLE, FREE): Add a U suffix to the constants to make them unsigned. The implicit conversion issue in the expression convert(type_t, block->t.type & ~REACHABLE) is that ~REACHABLE is -257, and is being converted to unsigned.
Diffstat (limited to 'chksums/sha256.c')
0 files changed, 0 insertions, 0 deletions