summaryrefslogtreecommitdiffstats
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-08-13 10:15:45 -0700
committerIan Lance Taylor <iant@golang.org>2021-08-13 10:38:36 -0700
commite5c00544cce1feb2c8c4e9aad766315d389c69c4 (patch)
tree49f9d1974b7e430eed0a1469c5e42e9b537835a6 /libgo
parentipa: "naked" attribute implies "noipa" attribute (diff)
downloadgcc-e5c00544cce1feb2c8c4e9aad766315d389c69c4.tar.gz
gcc-e5c00544cce1feb2c8c4e9aad766315d389c69c4.tar.bz2
gcc-e5c00544cce1feb2c8c4e9aad766315d389c69c4.tar.xz
runtime: use C cast syntax in stack.c
Didn't notice earlier because this code is only used on systems that do not support -fsplit-stack. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/342051
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/stack.c b/libgo/runtime/stack.c
index 0c0c30e46ac..65e8fa30077 100644
--- a/libgo/runtime/stack.c
+++ b/libgo/runtime/stack.c
@@ -174,7 +174,7 @@ bool onCurrentStack(uintptr p)
174 nextsp2 = secondary_stack_pointer(); 174 nextsp2 = secondary_stack_pointer();
175 if (nextsp2 != nil) { 175 if (nextsp2 != nil) {
176 initialsp2 = (byte*)(void*)(gp->gcinitialsp2); 176 initialsp2 = (byte*)(void*)(gp->gcinitialsp2);
177 if (uintptr(initialsp2) < uintptr(nextsp2)) { 177 if ((uintptr)(initialsp2) < (uintptr)(nextsp2)) {
178 temp = initialsp2; 178 temp = initialsp2;
179 initialsp2 = nextsp2; 179 initialsp2 = nextsp2;
180 nextsp2 = temp; 180 nextsp2 = temp;