]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cc: map C int to int32 in Go defs
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Sat, 6 Oct 2012 05:56:12 +0000 (13:56 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Sat, 6 Oct 2012 05:56:12 +0000 (13:56 +0800)
R=golang-dev, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/6621052

src/cmd/cc/godefs.c

index 4274c562658aa555e2c58cd1dea9365be33de127..7457bd0007569069658ed45874480ed0cd9e8716 100644 (file)
@@ -188,10 +188,10 @@ printtypename(Type *t)
 
        switch(t->etype) {
        case TINT:
-               Bprint(&outbuf, "int");
+               Bprint(&outbuf, "int32");
                break;
        case TUINT:
-               Bprint(&outbuf, "uint");
+               Bprint(&outbuf, "uint32");
                break;
        case TCHAR:
                Bprint(&outbuf, "int8");