X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Funicode%2Fu8_textprep.c;fp=module%2Funicode%2Fu8_textprep.c;h=2532769c86f868de684a1e335f69ae9454a799df;hb=c65aa5b2b9c48375ea1c451f252f0056e16f4e49;hp=34b0b9a8b954cb6ba3de4737d5d92a7d4319b2a9;hpb=e75c13c353571efaa9b4e047f16969ec13a518f5;p=zfs.git diff --git a/module/unicode/u8_textprep.c b/module/unicode/u8_textprep.c index 34b0b9a..2532769 100644 --- a/module/unicode/u8_textprep.c +++ b/module/unicode/u8_textprep.c @@ -144,9 +144,10 @@ #define U8_16BIT_TABLE_INDICATOR (0x8000U) /* The following are some convenience macros. */ -#define U8_PUT_3BYTES_INTO_UTF32(u, b1, b2, b3) \ - (u) = ((uint32_t)(b1) & 0x0F) << 12 | ((uint32_t)(b2) & 0x3F) << 6 | \ - (uint32_t)(b3) & 0x3F; +#define U8_PUT_3BYTES_INTO_UTF32(u, b1, b2, b3) \ + (u) = ((((uint32_t)(b1) & 0x0F) << 12) | \ + (((uint32_t)(b2) & 0x3F) << 6) | \ + ((uint32_t)(b3) & 0x3F)); #define U8_SIMPLE_SWAP(a, b, t) \ (t) = (a); \