From: Fredrik Roubert Date: Fri, 3 Feb 2023 19:43:54 +0000 (+0100) Subject: ICU-21833 Replace nullptr with 0 when assigning to UChar. X-Git-Tag: cldr/2023-02-21~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5560ee8870b41c94c0f89e363f31f57c1014de99;p=icu ICU-21833 Replace nullptr with 0 when assigning to UChar. This bug was originally introduced by ICU-4844 which erroneously assigned NULL to UChar (which happens to work, even though it's conceptually wrong). --- diff --git a/icu4c/source/test/perf/collperf/collperf.cpp b/icu4c/source/test/perf/collperf/collperf.cpp index f27b8324bc2..a99d1774e81 100644 --- a/icu4c/source/test/perf/collperf/collperf.cpp +++ b/icu4c/source/test/perf/collperf/collperf.cpp @@ -769,7 +769,7 @@ public: } else { icu_data->append_one(len); memcpy(icu_data->last(), line, len * sizeof(UChar)); - icu_data->last()[len -1] = nullptr; + icu_data->last()[len -1] = 0; } } if(U_FAILURE(status)) return;