mirror of
https://github.com/golang/go
synced 2024-11-22 20:40:03 -07:00
runtime/cgo: add cast in C code to avoid C compiler warning
Fixes #44340 Change-Id: Id80dd1f44a988b653933732afcc8e49a826affc4 Reviewed-on: https://go-review.googlesource.com/c/go/+/293209 Reviewed-by: Andrew G. Morgan <agm@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
2f0da6d9e2
commit
07ef313525
@ -32,7 +32,7 @@ typedef struct {
|
||||
|
||||
#define SET_RETVAL(fn) \
|
||||
uintptr_t ret = (uintptr_t) fn ; \
|
||||
if (ret == -1) { \
|
||||
if (ret == (uintptr_t) -1) { \
|
||||
x->retval = (uintptr_t) errno; \
|
||||
} else \
|
||||
x->retval = ret
|
||||
|
Loading…
Reference in New Issue
Block a user