shithub: mc

Download patch

ref: 8f56400a286619aa1373e5f731e74a79fb9cdfbc
parent: 6dcec87d059d72104ca3f0d264bd087e355d3c30
author: Ori Bernstein <[email protected]>
date: Tue Jul 24 20:28:46 EDT 2012

More long/size_t printf confusion.

--- a/8/simp.c
+++ b/8/simp.c
@@ -1011,7 +1011,7 @@
     assert(n->type == Ndecl);
     s->stksz += size(n);
     if (debug)
-        printf("declare %s:%s(%ld) at %zd\n", declname(n), tystr(decltype(n)), n->decl.did, s->stksz);
+        printf("declare %s:%s(%zd) at %zd\n", declname(n), tystr(decltype(n)), n->decl.did, s->stksz);
     htput(s->locs, n, (void*)s->stksz);
 }
 
@@ -1019,7 +1019,7 @@
 {
     assert(n->type == Ndecl);
     if (debug)
-        printf("declare %s(%ld) at %zd\n", declname(n), n->decl.did, -(s->argsz + 8));
+        printf("declare %s(%zd) at %zd\n", declname(n), n->decl.did, -(s->argsz + 8));
     htput(s->locs, n, (void*)-(s->argsz + 8));
     s->argsz += size(n);
 }