diff --git a/AUTHORS b/AUTHORS index c04aa16b04..72c23bcc83 100644 --- a/AUTHORS +++ b/AUTHORS @@ -70,6 +70,7 @@ Kang-Hao (Kenny) Lu Luis Reis Luke Zarko Maciej Małecki +Marcin Cieślak Mathias Bynens Matt Hanselman Matthew Sporleder diff --git a/src/runtime/runtime-i18n.cc b/src/runtime/runtime-i18n.cc index 18e9aee126..3da71a98ef 100644 --- a/src/runtime/runtime-i18n.cc +++ b/src/runtime/runtime-i18n.cc @@ -626,7 +626,7 @@ RUNTIME_FUNCTION(Runtime_CreateBreakIterator) { local_object->SetInternalField(0, reinterpret_cast(break_iterator)); // Make sure that the pointer to adopted text is NULL. - local_object->SetInternalField(1, reinterpret_cast(NULL)); + local_object->SetInternalField(1, static_cast(nullptr)); Factory* factory = isolate->factory(); Handle key = factory->NewStringFromStaticChars("breakIterator"); diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc index e15741cc24..1f563f956c 100644 --- a/test/cctest/test-heap.cc +++ b/test/cctest/test-heap.cc @@ -128,7 +128,7 @@ TEST(HandleNull) { Isolate* isolate = CcTest::i_isolate(); HandleScope outer_scope(isolate); LocalContext context; - Handle n(reinterpret_cast(NULL), isolate); + Handle n(static_cast(nullptr), isolate); CHECK(!n.is_null()); } @@ -1986,7 +1986,7 @@ TEST(TestAlignmentCalculations) { Heap::GetMaximumFillToAlign(kSimd128Unaligned); CHECK_EQ(maximum_simd128_misalignment, max_simd128_unaligned_fill); - Address base = reinterpret_cast
(NULL); + Address base = static_cast
(NULL); int fill = 0; // Word alignment never requires fill.