]> Cypherpunks repositories - gostls13.git/commitdiff
print format bug
authorRuss Cox <rsc@golang.org>
Fri, 30 Jan 2009 22:54:49 +0000 (14:54 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 30 Jan 2009 22:54:49 +0000 (14:54 -0800)
R=ken
OCL=23965
CL=23965

src/cmd/6g/list.c

index b5e298b108dd30648a7588211141bfe702a11ca4..799bacf9a29c56ba018e08ed6f3f6e67024a7c25 100644 (file)
@@ -124,7 +124,7 @@ Dconv(Fmt *fp)
                if(fp->flags & FmtLong) {
                        d1 = a->offset & 0xffffffffLL;
                        d2 = (a->offset>>32) & 0xffffffffLL;
-                       snprint(str, sizeof(str), "$%lud-%lud", d1, d2);
+                       snprint(str, sizeof(str), "$%lud-%lud", (ulong)d1, (ulong)d2);
                        break;
                }
                snprint(str, sizeof(str), "$%lld", a->offset);