From 11a26e1b2e49c2b72ed0510d16b00722edcd0b0c Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 17 Jan 2018 15:32:47 +0100 Subject: src: fix -Wimplicit-fallthrough warning PR-URL: https://github.com/nodejs/node/pull/18205 Reviewed-By: Anatoli Papirovski Reviewed-By: Evan Lucas Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Michael Dawson Reviewed-By: Ruben Bridgewater --- src/node_i18n.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node_i18n.cc b/src/node_i18n.cc index 041eda94f3..71ae6a0003 100644 --- a/src/node_i18n.cc +++ b/src/node_i18n.cc @@ -788,7 +788,8 @@ static int GetColumnWidth(UChar32 codepoint, if (ambiguous_as_full_width) { return 2; } - // Fall through if ambiguous_as_full_width if false. + // If ambiguous_as_full_width is false: + // Fall through case U_EA_NEUTRAL: if (u_hasBinaryProperty(codepoint, UCHAR_EMOJI_PRESENTATION)) { return 2; -- cgit v1.2.3