mirror of
https://github.com/golang/go
synced 2024-11-23 18:10:04 -07:00
runtime: apply KindMask before comparison
Fixes windows build. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/127510043
This commit is contained in:
parent
0fee63351d
commit
e4f3db3852
@ -29,7 +29,7 @@ runtime·compilecallback(Eface fn, bool cleanstack)
|
|||||||
int32 argsize, i, n;
|
int32 argsize, i, n;
|
||||||
WinCallbackContext *c;
|
WinCallbackContext *c;
|
||||||
|
|
||||||
if(fn.type == nil || fn.type->kind != KindFunc)
|
if(fn.type == nil || (fn.type->kind&KindMask) != KindFunc)
|
||||||
runtime·panicstring("compilecallback: not a function");
|
runtime·panicstring("compilecallback: not a function");
|
||||||
ft = (FuncType*)fn.type;
|
ft = (FuncType*)fn.type;
|
||||||
if(ft->out.len != 1)
|
if(ft->out.len != 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user