1
0
mirror of https://github.com/golang/go synced 2024-11-12 04:30:22 -07:00

print format bug

R=ken
OCL=23965
CL=23965
This commit is contained in:
Russ Cox 2009-01-30 14:54:49 -08:00
parent 2b9fe0ea24
commit 122ed3e988

View 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);