From 2500b707c8ba632c1bd86c0448c86f60a95b74a2 Mon Sep 17 00:00:00 2001 From: TianYuan Date: Mon, 13 Mar 2023 12:29:13 +0000 Subject: [PATCH] fix && in src/front/text_normalize.cpp --- demos/TTSCppFrontend/src/front/text_normalize.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/demos/TTSCppFrontend/src/front/text_normalize.cpp b/demos/TTSCppFrontend/src/front/text_normalize.cpp index 51952d486..60d6482c0 100644 --- a/demos/TTSCppFrontend/src/front/text_normalize.cpp +++ b/demos/TTSCppFrontend/src/front/text_normalize.cpp @@ -88,13 +88,13 @@ std::string TextNormalizer::CreateTextValue(const std::string &num_str, std::string first_part; std::string second_part; - if (len > 1 and len <= 2) { + if (len > 1 && len <= 2) { largest_unit = 1; - } else if (len > 2 and len <= 3) { + } else if (len > 2 && len <= 3) { largest_unit = 2; - } else if (len > 3 and len <= 4) { + } else if (len > 3 && len <= 4) { largest_unit = 3; - } else if (len > 4 and len <= 8) { + } else if (len > 4 && len <= 8) { largest_unit = 4; } else if (len > 8) { largest_unit = 8;