mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 04:35:13 +03:00
17 lines
580 B
Diff
17 lines
580 B
Diff
Subject: Fix cast errors with latest GCC (11.2)
|
|
Upstream: No
|
|
Author: Simon Frankenberger <simon-alpine@fraho.eu>
|
|
|
|
This patch fixes multiple casting errors reported by GCC 11.2
|
|
|
|
--- old/src/hotspot/cpu/aarch64/interpreterRT_aarch64.cpp
|
|
+++ new/src/hotspot/cpu/aarch64/interpreterRT_aarch64.cpp
|
|
@@ -267,7 +267,7 @@
|
|
|
|
virtual void pass_object() {
|
|
intptr_t* addr = single_slot_addr();
|
|
- intptr_t value = *addr == 0 ? NULL : (intptr_t)addr;
|
|
+ intptr_t value = *addr == 0 ? (intptr_t) 0 : (intptr_t)addr;
|
|
if (pass_gpr(value) < 0) {
|
|
pass_stack<>(value);
|
|
}
|