use variable in FL_KEEP

This commit is contained in:
dzaima 2021-12-03 14:29:41 +02:00
parent 3c09781d1a
commit 0b42b35d51

View File

@ -492,7 +492,7 @@ enum Flags {
fl_dsc=4, // sorted descending (non-ascending)
};
#define FL_SET(X,F) ({ B x_ = (X); v(x_)->flags|= (F); x_; })
#define FL_KEEP(X,F) ({ B x_ = (X); v(X)->flags&= (F); x_; })
#define FL_KEEP(X,F) ({ B x_ = (X); v(x_)->flags&= (F); x_; })
#define FL_HAS(X,F) ((v(X)->flags&(F)) != 0)
// refcount stuff