This commit is contained in:
Josh Wolfe 2015-11-25 12:19:10 -07:00
parent c3458543c9
commit 0b59afec56

View file

@ -248,7 +248,7 @@ static void analyze_node(CodeGen *g, AstNode *node) {
case NodeTypeFnDef:
{
AstNode *proto_node = node->data.fn_def.fn_proto;
assert(proto_node->type = NodeTypeFnProto);
assert(proto_node->type == NodeTypeFnProto);
Buf *proto_name = &proto_node->data.fn_proto.name;
auto entry = g->fn_defs.maybe_get(proto_name);
if (entry) {