aboutsummaryrefslogtreecommitdiff
path: root/lib/wind/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wind/utf8.c')
-rw-r--r--lib/wind/utf8.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/wind/utf8.c b/lib/wind/utf8.c
index d69db0c0cec1..4559109f3fd6 100644
--- a/lib/wind/utf8.c
+++ b/lib/wind/utf8.c
@@ -205,18 +205,20 @@ wind_ucs4utf8(const uint32_t *in, size_t in_len, char *out, size_t *out_len)
case 4:
out[3] = (ch | 0x80) & 0xbf;
ch = ch >> 6;
- /* FALLTHROUGH */
+ HEIM_FALLTHROUGH;
case 3:
out[2] = (ch | 0x80) & 0xbf;
ch = ch >> 6;
- /* FALLTHROUGH */
+ HEIM_FALLTHROUGH;
case 2:
out[1] = (ch | 0x80) & 0xbf;
ch = ch >> 6;
- /* FALLTHROUGH */
+ HEIM_FALLTHROUGH;
case 1:
out[0] = ch | first_char[len - 1];
- /* FALLTHROUGH */
+ HEIM_FALLTHROUGH;
+ default:
+ break;
}
}
out += len;
@@ -484,14 +486,16 @@ wind_ucs2utf8(const uint16_t *in, size_t in_len, char *out, size_t *out_len)
case 3:
out[2] = (ch | 0x80) & 0xbf;
ch = ch >> 6;
- /* FALLTHROUGH */
+ HEIM_FALLTHROUGH;
case 2:
out[1] = (ch | 0x80) & 0xbf;
ch = ch >> 6;
- /* FALLTHROUGH */
+ HEIM_FALLTHROUGH;
case 1:
out[0] = ch | first_char[len - 1];
- /* FALLTHROUGH */
+ HEIM_FALLTHROUGH;
+ default:
+ break;
}
out += len;
}