# HG changeset patch # User Paul Boddie # Date 1635807923 -3600 # Node ID 50706c4011d47d7d3cf9181e43168fabe82d1075 # Parent 866a4ec5a19a10d016cce2bdbc505a3cc6b07409# Parent f57be963049fa457db6f3a8fda3990d1bf5ffc67 Merged changes from the default branch. diff -r 866a4ec5a19a -r 50706c4011d4 templates/types.h --- a/templates/types.h Mon Nov 01 23:29:28 2021 +0100 +++ b/templates/types.h Tue Nov 02 00:05:23 2021 +0100 @@ -126,9 +126,10 @@ /* Attribute interpretation. */ -#define __NUM_TAG_BITS 1 -#define __TAG_INT 0b1 -#define __INTEGER(ATTR) ((ATTR).intvalue & __TAG_INT) +#define __NUM_TAG_BITS 2 +#define __TAG_INT 0b01 +#define __TAG_MASK 0b11 +#define __INTEGER(ATTR) (((ATTR).intvalue & __TAG_MASK) == __TAG_INT) /* Attribute value setting. */