~pixelherodev/zyg

27187f8391f97f3e6f69df47ee5ad9337d9975a0 — Noam Preil 2 months ago c843bae
fixes
2 files changed, 2 insertions(+), 2 deletions(-)

M parser.c
M sema.c
M parser.c => parser.c +1 -1
@@ 728,7 728,7 @@ struct prefix {
	uint32_t value;
};

static struct prefix failed = { prefix_error };
static struct prefix failed = { prefix_error, 0 };

// Returns a series of operations to perform, or the address of failed on failure
static struct prefix *

M sema.c => sema.c +1 -1
@@ 50,7 50,7 @@ anal_execute(c3ctx *c3)
			return 0;
		}
		// If function and has body (i.e. not external), generate IR
		if(c3nodetag(*c3, t) == C3_VALUE_FN && c3nodechild(*c3, t, 1) != -1){
		if(c3nodetag(*c3, t) == C3_VALUE_FN && c3nodechild(*c3, t, 1) != UINT32_MAX){
			if(l_fn(t) == UINT32_MAX){
				ERROR("Failed to extract expression semantics", 0);
				return 0;