print("allocauto: %lld to %lld\n", oldstksize, (vlong)stksize);
setlineno(curfn);
- if(stksize+maxarg > (1ULL<<31))
+ if((int64)stksize+maxarg > (1ULL<<31))
yyerror("stack frame too large (>2GB)");
defframe(ptxt);
goto no;
yes:
- assumed_equal = l.next;
return 1;
no:
- assumed_equal = l.next;
return 0;
}
}
static Node*
-hashmem(Type *t, vlong width)
+hashmem(Type *t)
{
Node *tfn, *n;
Sym *sym;
a = algtype1(t, nil);
switch(a) {
case AMEM:
- return hashmem(t, t->width);
+ return hashmem(t);
case AINTER:
sym = pkglookup("interhash", runtimepkg);
break;
size = t->width - first->width; // first->width is offset
else
size = t1->width - first->width; // both are offsets
- hashel = hashmem(first->type, size);
+ hashel = hashmem(first->type);
// hashel(h, size, &p.first)
call = nod(OCALL, hashel, N);
call->list = list(call->list, nh);