fixed a flaw in HAWK_OOCHARS_TO_INT_MAKE_OPTION()

This commit is contained in:
hyung-hwan 2021-07-12 14:07:57 +00:00
parent edf37ae74c
commit 23715c35ef

View File

@ -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)