Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Unified Diff: test/cctest/test-heap.cc

Issue 1277353002: Use static_cast<> for NULL (clang 3.7) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use nullptr everywhere, squash commits Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-i18n.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index 0bc3c1e13f6f4b47e124fbc38d5bf24a069ac76a..1ff684848fd0e754e1844a82ea195cdf848b8638 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<Object> n(reinterpret_cast<Object*>(NULL), isolate);
+ Handle<Object> n(static_cast<Object*>(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<Address>(NULL);
+ Address base = static_cast<Address>(NULL);
int fill = 0;
// Word alignment never requires fill.
« no previous file with comments | « src/runtime/runtime-i18n.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698