Fix thinkos in GinLogicValue enum.
authorHeikki Linnakangas
Fri, 21 Mar 2014 22:41:37 +0000 (23:41 +0100)
committerHeikki Linnakangas
Fri, 21 Mar 2014 22:41:37 +0000 (23:41 +0100)
It was incorrectly declared as global variable, not an enum type, and
the comments for GIN_FALSE and GIN_TRUE were backwards.

src/include/access/gin.h

index 75a86c4319a40d2ffac5e9b40cb09b89c24c6596..34f4405bf6953e1cf58186744cf165a6ec971df0 100644 (file)
@@ -48,13 +48,13 @@ typedef struct GinStatsData
 } GinStatsData;
 
 /* ginlogic.c */
-enum
+enum GinLogicValueEnum
 {
-   GIN_FALSE = 0,          /* item is present / matches */
-   GIN_TRUE = 1,           /* item is not present / does not match */
+   GIN_FALSE = 0,          /* item is not present / does not match */
+   GIN_TRUE = 1,           /* item is present / matches */
    GIN_MAYBE = 2           /* don't know if item is present / don't know if
                             * matches */
-} GinLogicValueEnum;
+};
 
 typedef char GinLogicValue;