Skip to content

Commit 2aac758

Browse files
committed
Fix type of __sendptr
1 parent 83653de commit 2aac758

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

frontends/common.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,14 @@ Init()
10901090
ast_type_generic_funcptr = GenericFunctionPtr(1);
10911091

10921092
// a generic function for Spin2 SEND type functionality
1093-
ast_type_sendptr = NewAST(AST_MODIFIER_SEND_ARGS, GenericFunctionPtr(0), NULL);
1093+
ast_type_sendptr = NewAST(AST_MODIFIER_SEND_ARGS,
1094+
NewAST(AST_PTRTYPE,
1095+
NewAST(AST_FUNCTYPE,
1096+
ast_type_void,
1097+
NewAST(AST_EXPRLIST,
1098+
ast_type_long, NULL)),
1099+
NULL),
1100+
NULL);
10941101
ast_type_recvptr = GenericFunctionPtr(1);
10951102

10961103
initSpinLexer(gl_p2);

0 commit comments

Comments
 (0)