Commit e4f3db38 authored by Alex Brainman's avatar Alex Brainman

runtime: apply KindMask before comparison

Fixes windows build.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/127510043
parent 0fee6335
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment