From 5eded36279b89b00420d37acdbdfcf57e2cdd76d Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Mon, 22 Jan 2024 22:54:46 +0900 Subject: [PATCH] ICU-22520 Bugfix: Use macro parameter name instead of variable name. --- icu4c/source/common/uloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/common/uloc.cpp b/icu4c/source/common/uloc.cpp index ce49d6c50e2..404ca9029e0 100644 --- a/icu4c/source/common/uloc.cpp +++ b/icu4c/source/common/uloc.cpp @@ -476,7 +476,7 @@ static const CanonicalizationMap CANONICALIZE_MAP[] = { /* ### BCP47 Conversion *******************************************/ /* Test if the locale id has BCP47 u extension and does not have '@' */ -#define _hasBCP47Extension(id) (id && uprv_strstr(id, "@") == nullptr && getShortestSubtagLength(localeID) == 1) +#define _hasBCP47Extension(id) (id && uprv_strstr(id, "@") == nullptr && getShortestSubtagLength(id) == 1) /* Gets the size of the shortest subtag in the given localeID. */ static int32_t getShortestSubtagLength(const char *localeID) { int32_t localeIDLength = static_cast(uprv_strlen(localeID));