shithub: git9

Download patch

ref: 54274ac67ef413d6d1a452a55a3ea72ce7b4a9ef
parent: e1e84b5214aac5d38263f5c8bfc4d88f698d68d6
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Dec 6 00:23:58 EST 2019

Fix warnings on 9legacy.

--- a/pack.c
+++ b/pack.c
@@ -346,7 +346,7 @@
 
 	}
 	if(r != er){
-		werrstr("truncated delta (%zd)", er - r);
+		werrstr("truncated delta");
 		return -1;
 	}
 
--- a/save.c
+++ b/save.c
@@ -154,7 +154,7 @@
 		memcpy(t, d->h.h, sizeof(d->h.h));
 		t += sizeof(d->h.h);
 	}
-	nhdr = snprint(hdr, sizeof(hdr), "%T %zd", GTree, t - txt) + 1;
+	nhdr = snprint(hdr, sizeof(hdr), "%T %lld", GTree, (vlong)(t - txt)) + 1;
 	writeobj(h, hdr, nhdr, txt, t - txt);
 	free(txt);
 }