From 9785acb5d0ff5969e2428879854513bfe20a4552 Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Mon, 4 Jul 2022 22:00:02 -0500 Subject: [PATCH] Fix bit flag ordering for flags --- include/gargoyle/codex.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/gargoyle/codex.h b/include/gargoyle/codex.h index 9b9c57d..1baae39 100644 --- a/include/gargoyle/codex.h +++ b/include/gargoyle/codex.h @@ -22,15 +22,15 @@ static const gargoyle_err_type GARGOYLE_ERR_UNKNOWN_OPTN = 1 << 0; static const gargoyle_err_type GARGOYLE_ERR_UNKNOWN_TYPE = 1 << 5; static const gargoyle_err_type GARGOYLE_ERR_VAL_REQUIRED = 1 << 1; -typedef uint8_t gargoyle_flag_type; +typedef uint16_t gargoyle_flag_type; static const gargoyle_flag_type GARGOYLE_FLG_BCASE = 1 << 0; static const gargoyle_flag_type GARGOYLE_FLG_ECASE = 1 << 1; -static const gargoyle_flag_type GARGOYLE_FLG_FILL0 = 1 << 5; -static const gargoyle_flag_type GARGOYLE_FLG_GREED = 1 << 4; -static const gargoyle_flag_type GARGOYLE_FLG_ICASE = 1 << 2; -static const gargoyle_flag_type GARGOYLE_FLG_STRCT = 1 << 6; -static const gargoyle_flag_type GARGOYLE_FLG_SYMBL = 1 << 3; +static const gargoyle_flag_type GARGOYLE_FLG_FILL0 = 1 << 2; +static const gargoyle_flag_type GARGOYLE_FLG_GREED = 1 << 3; +static const gargoyle_flag_type GARGOYLE_FLG_ICASE = 1 << 4; +static const gargoyle_flag_type GARGOYLE_FLG_STRCT = 1 << 5; +static const gargoyle_flag_type GARGOYLE_FLG_SYMBL = 1 << 6; static const gargoyle_flag_type GARGOYLE_FLG_FLXBL = GARGOYLE_FLG_BCASE | GARGOYLE_FLG_ECASE |