From 23715c35ef715cd79728f2121d594398e0cc6fc7 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 12 Jul 2021 14:07:57 +0000 Subject: [PATCH] fixed a flaw in HAWK_OOCHARS_TO_INT_MAKE_OPTION() --- hawk/lib/hawk-utl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hawk/lib/hawk-utl.h b/hawk/lib/hawk-utl.h index ecd37342..36579604 100644 --- a/hawk/lib/hawk-utl.h +++ b/hawk/lib/hawk-utl.h @@ -926,7 +926,7 @@ HAWK_EXPORT hawk_oow_t hawk_int_to_oocstr ( hawk_oow_t size ); -#define HAWK_OOCHARS_TO_INT_MAKE_OPTION(ltrim,rtrim,base) (((!!(ltrim)) << 2) | ((!!(rtrim)) << 4) | ((base) << 8)) +#define HAWK_OOCHARS_TO_INT_MAKE_OPTION(ltrim,rtrim,base) (((!!(ltrim)) << 2) | ((!!(rtrim)) << 3) | ((base) << 8)) #define HAWK_OOCHARS_TO_INT_GET_OPTION_LTRIM(option) ((option) & 4) #define HAWK_OOCHARS_TO_INT_GET_OPTION_RTRIM(option) ((option) & 8) #define HAWK_OOCHARS_TO_INT_GET_OPTION_BASE(option) ((option) >> 8)