summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/print.c
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2010-03-05 20:16:04 -0800
committerKen Thompson <ken@golang.org>2010-03-05 20:16:04 -0800
commit5842cfc85c6f8fc4d21a8eed092e072c31e8d57f (patch)
tree762fd17775da62a5871b43cb2d8e2fc5061e01fa /src/pkg/runtime/print.c
parent6cb89cd7be227e578300ee8097f9dfbf362bee53 (diff)
downloadgolang-5842cfc85c6f8fc4d21a8eed092e072c31e8d57f.tar.gz
6g complex type usable
8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042
Diffstat (limited to 'src/pkg/runtime/print.c')
-rw-r--r--src/pkg/runtime/print.c5
1 files changed, 4 insertions, 1 deletions
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);
}