aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pkg/runtime/callback_windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/callback_windows.c b/src/pkg/runtime/callback_windows.c
index f1283a85d6..5c6975af29 100644
--- a/src/pkg/runtime/callback_windows.c
+++ b/src/pkg/runtime/callback_windows.c
@@ -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)