From 69e9e45744b11c91626869f1ade72a07c296d387 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 13 Feb 2021 17:03:20 +1100 Subject: Cleanup: macro hygiene, use parenthesis around operators --- intern/utfconv/utfconv.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'intern/utfconv') diff --git a/intern/utfconv/utfconv.h b/intern/utfconv/utfconv.h index 6470802bedf..36dff288966 100644 --- a/intern/utfconv/utfconv.h +++ b/intern/utfconv/utfconv.h @@ -46,11 +46,11 @@ size_t count_utf_16_from_8(const char *string8); /** * conv_utf_*** errors */ -#define UTF_ERROR_NULL_IN 1 << 0 /* Error occures when requered parameter is missing*/ -#define UTF_ERROR_ILLCHAR 1 << 1 /* Error if character is in illigal UTF rage*/ +#define UTF_ERROR_NULL_IN (1 << 0) /* Error occures when requered parameter is missing*/ +#define UTF_ERROR_ILLCHAR (1 << 1) /* Error if character is in illigal UTF rage*/ #define UTF_ERROR_SMALL \ - 1 << 2 /* Passed size is to small. It gives legal string with character missing at the end*/ -#define UTF_ERROR_ILLSEQ 1 << 3 /* Error if sequence is broken and doesn't finish*/ + (1 << 2) /* Passed size is to small. It gives legal string with character missing at the end */ +#define UTF_ERROR_ILLSEQ (1 << 3) /* Error if sequence is broken and doesn't finish*/ /** * Converts utf-16 string to allocated utf-8 string -- cgit v1.2.3