Merge pull request #303 from rocallahan/signed-lbool

Make `lbool` explicitly signed
This commit is contained in:
alanminko 2024-07-24 09:48:03 -07:00 committed by GitHub
commit 6262dcffa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ static inline void vecp_remove(vecp* v, void* e)
typedef int lit;
typedef int cla;
typedef char lbool;
// Explicitly make it signed so promotion-to-int behavior doesn't vary
// across platforms that define signedness of char differently.
typedef signed char lbool;
static const int var_Undef = -1;
static const lit lit_Undef = -2;