From 5842cfc85c6f8fc4d21a8eed092e072c31e8d57f Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Fri, 5 Mar 2010 20:16:04 -0800 Subject: 6g complex type usable 8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042 --- src/pkg/runtime/print.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/pkg/runtime') diff --git a/src/pkg/runtime/print.c b/src/pkg/runtime/print.c index 92f49fba9..26b3de785 100644 --- a/src/pkg/runtime/print.c +++ b/src/pkg/runtime/print.c @@ -83,6 +83,10 @@ vprintf(int8 *s, byte *arg) arg = vrnd(arg, sizeof(uintptr)); narg = arg + 8; break; + case 'C': + arg = vrnd(arg, sizeof(uintptr)); + narg = arg + 16; + break; case 'p': // pointer-sized case 's': arg = vrnd(arg, sizeof(uintptr)); @@ -267,7 +271,6 @@ void { write(fd, "(", 1); ·printfloat(v.real); - write(fd, ",", 1); ·printfloat(v.imag); write(fd, "i)", 2); } -- cgit v1.2.3