From 1c8df28752ad92b64a05db838db8aef23d725aab Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 17 Jan 2018 15:32:47 +0100 Subject: [PATCH] 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 041eda94f3bdd5..71ae6a000336e2 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;