1
0
mirror of https://github.com/golang/go synced 2024-11-23 15:00:03 -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:
Alex Brainman 2014-08-19 14:41:52 +10:00
parent 0fee63351d
commit e4f3db3852

View File

@ -29,7 +29,7 @@ runtime·compilecallback(Eface fn, bool cleanstack)
int32 argsize, i, n;
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");
ft = (FuncType*)fn.type;
if(ft->out.len != 1)