We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f0da6d commit 07ef313Copy full SHA for 07ef313
src/runtime/cgo/linux_syscall.c
@@ -32,7 +32,7 @@ typedef struct {
32
33
#define SET_RETVAL(fn) \
34
uintptr_t ret = (uintptr_t) fn ; \
35
- if (ret == -1) { \
+ if (ret == (uintptr_t) -1) { \
36
x->retval = (uintptr_t) errno; \
37
} else \
38
x->retval = ret
0 commit comments