Skip to content

Commit 7e378fc

Browse files
author
Kim Barrett
committed
8335667: Fix simple -Wzero-as-null-pointer-constant warnings in compiler code
Reviewed-by: chagedorn
1 parent ced9906 commit 7e378fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hotspot/share/ci/ciStreams.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -66,7 +66,7 @@ class ciBytecodeStream : StackObj {
6666
Bytecodes::Code _raw_bc; // Current bytecode, raw form
6767

6868
void reset( address base, unsigned int size ) {
69-
_bc_start =_was_wide = 0;
69+
_bc_start = _was_wide = nullptr;
7070
_start = _pc = base; _end = base + size;
7171
}
7272

src/hotspot/share/code/exceptionHandlerTable.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class ImplicitExceptionTable {
148148
ReallocMark _nesting; // assertion check for reallocations
149149

150150
public:
151-
ImplicitExceptionTable( ) : _size(0), _len(0), _data(0) { }
151+
ImplicitExceptionTable( ) : _size(0), _len(0), _data(nullptr) { }
152152
// (run-time) construction from nmethod
153153
ImplicitExceptionTable(const nmethod *nm);
154154

0 commit comments

Comments
 (0)