Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-02-13 09:03:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-13 09:40:10 +0300
commit69e9e45744b11c91626869f1ade72a07c296d387 (patch)
treedf18fd4621036d7a93675ac7f63b6ceb5f3575db /intern/utfconv
parent2da649cc50b552996bd790dadc27ad1af437800f (diff)
Cleanup: macro hygiene, use parenthesis around operators
Diffstat (limited to 'intern/utfconv')
-rw-r--r--intern/utfconv/utfconv.h8
1 files changed, 4 insertions, 4 deletions
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