]> git.xonotic.org Git - xonotic/darkplaces.git/commit
cvar: use unsigned for flags and hashindex
authorbones_was_here <bones_was_here@xonotic.au>
Thu, 21 Dec 2023 11:06:36 +0000 (21:06 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 21 Dec 2023 11:39:18 +0000 (21:39 +1000)
commitfd87ca0bf3aa1d7bbc9f90302053d26b66350697
treefc8fa64623fafaf462ebd324f8da08b06a5c09d8
parent05a5ed884366d3a1c8e211168efc19b61867cfca
cvar: use unsigned for flags and hashindex

Signed is too error-prone with bitwise operations.  The common pattern
of passing ~0 (all bits set) resulted in neededflags=-1 in a backtrace
on x86_64.

See also b8692b8cd73685794b59b0522e8caa4b9d9a2dac

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
cvar.c
cvar.h