diff --git a/src/cmd/godefs/main.c b/src/cmd/godefs/main.c index 3735167d246..6ff542f4897 100644 --- a/src/cmd/godefs/main.c +++ b/src/cmd/godefs/main.c @@ -294,8 +294,14 @@ Continue: Bprint(bout, "// Constants\n"); if(ncon > 0) { Bprint(bout, lang->constbegin); - for(i=0; iconstfmt, con[i].name, con[i].value & 0xFFFFFFFF); + for(i=0; iconstfmt, con[i].name, con[i].value); + else + Bprint(bout, lang->constfmt, con[i].name, con[i].value & 0xFFFFFFFF); + } Bprint(bout, lang->constend); } Bprint(bout, "\n");