Skip to content

Commit 318d9ac

Browse files
author
Kim Barrett
committed
8335369: Fix -Wzero-as-null-pointer-constant warnings in ImmutableOopMapBuilder
Reviewed-by: kvn, jwaters
1 parent 5fe07b3 commit 318d9ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/compiler/oopMap.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 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
@@ -411,7 +411,7 @@ class ImmutableOopMapBuilder {
411411

412412
Mapping() : _kind(OOPMAP_UNKNOWN), _offset(-1), _size(-1), _map(nullptr) {}
413413

414-
void set(kind_t kind, int offset, int size, const OopMap* map = 0, const OopMap* other = 0) {
414+
void set(kind_t kind, int offset, int size, const OopMap* map, const OopMap* other = nullptr) {
415415
_kind = kind;
416416
_offset = offset;
417417
_size = size;

0 commit comments

Comments
 (0)