Skip to content

Commit

Permalink
Merge pull request #303 from rocallahan/signed-lbool
Browse files Browse the repository at this point in the history
Make `lbool` explicitly signed
  • Loading branch information
alanminko authored Jul 24, 2024
2 parents d036ba5 + 6c62604 commit 6262dcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sat/bsat/satVec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6262dcf

Please sign in to comment.