Skip to content

Commit b767cde

Browse files
bnoordhuisCommit Bot
authored andcommitted
[intl] unbreak build with ICU 57
Remove a call to `icu::toUCharPtr()` that wasn't present in other similar looking call sites either, just reinterpret_cast directly. Fixes nodejs/node#19656. Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng Change-Id: If281ce0a39356aa8bd20efb24c3e4b52b06841a3 Reviewed-on: https://chromium-review.googlesource.com/987953 Reviewed-by: Daniel Ehrenberg <littledan@chromium.org> Commit-Queue: Ben Noordhuis <info@bnoordhuis.nl> Cr-Commit-Position: refs/heads/master@{#52311}
1 parent 0cd7468 commit b767cde

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/runtime/runtime-intl.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,7 @@ RUNTIME_FUNCTION(Runtime_PluralRulesSelect) {
620620
icu::UnicodeString result = plural_rules->select(rounded);
621621
return *isolate->factory()
622622
->NewStringFromTwoByte(Vector<const uint16_t>(
623-
reinterpret_cast<const uint16_t*>(
624-
icu::toUCharPtr(result.getBuffer())),
623+
reinterpret_cast<const uint16_t*>(result.getBuffer()),
625624
result.length()))
626625
.ToHandleChecked();
627626
}

0 commit comments

Comments
 (0)