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
This commit is contained in:
parent
4998404915
commit
e5c00544cc
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
33f65dce43bd01c1fa38cd90a78c9aea6ca6dd59
|
||||
f2b7a2ce94127ad444a772bd1631516c5c67fb73
|
||||
|
||||
The first line of this file holds the git revision number of the last
|
||||
merge done from the gofrontend repository.
|
||||
|
|
|
@ -174,7 +174,7 @@ bool onCurrentStack(uintptr p)
|
|||
nextsp2 = secondary_stack_pointer();
|
||||
if (nextsp2 != nil) {
|
||||
initialsp2 = (byte*)(void*)(gp->gcinitialsp2);
|
||||
if (uintptr(initialsp2) < uintptr(nextsp2)) {
|
||||
if ((uintptr)(initialsp2) < (uintptr)(nextsp2)) {
|
||||
temp = initialsp2;
|
||||
initialsp2 = nextsp2;
|
||||
nextsp2 = temp;
|
||||
|
|
Loading…
Add table
Reference in a new issue