From fe2c59d321338c1a03287542ef7516dde8c0c292 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Tue, 29 Mar 2016 17:48:19 +0900 Subject: [PATCH] Checking a flag bit mistakenly resets other flag bits. [patch by Tsunakawa, Takayuki] --- descriptor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/descriptor.h b/descriptor.h index b3e8654..a2b64da 100644 --- a/descriptor.h +++ b/descriptor.h @@ -29,12 +29,12 @@ typedef struct UInt4 flags; } TABLE_INFO; #define TI_set_updatable(ti) (ti->flags |= TI_UPDATABLE) -#define TI_is_updatable(ti) (0 != (ti->flags &= TI_UPDATABLE)) +#define TI_is_updatable(ti) (0 != (ti->flags & TI_UPDATABLE)) #define TI_no_updatable(ti) (ti->flags &= (~TI_UPDATABLE)) #define TI_set_hasoids_checked(ti) (ti->flags |= TI_HASOIDS_CHECKED) -#define TI_checked_hasoids(ti) (0 != (ti->flags &= TI_HASOIDS)) +#define TI_checked_hasoids(ti) (0 != (ti->flags & TI_HASOIDS)) #define TI_set_hasoids(ti) (ti->flags |= TI_HASOIDS) -#define TI_has_oids(ti) (0 != (ti->flags &= TI_HASOIDS)) +#define TI_has_oids(ti) (0 != (ti->flags & TI_HASOIDS)) #define TI_set_has_no_oids(ti) (ti->flags &= (~TI_HASOIDS)) void TI_Constructor(TABLE_INFO *, const ConnectionClass *); void TI_Destructor(TABLE_INFO **, int); -- 2.39.5