Commit 2f5a05a8 authored by Ken Thompson's avatar Ken Thompson

bug 113

R=r
OCL=18081
CL=18081
parent 276ffd29
...@@ -1650,7 +1650,7 @@ globalsig(Type *t) ...@@ -1650,7 +1650,7 @@ globalsig(Type *t)
return S; return S;
if(strcmp(t->sym->name, types[et]->sym->name) != 0) if(strcmp(t->sym->name, types[et]->sym->name) != 0)
return S; return S;
snprint(buf, sizeof(buf), "%s_%S", "sigt", types[simtype[et]]->sym); snprint(buf, sizeof(buf), "%s_%S", "sigt", t->sym);
out: out:
s = pkglookup(buf, glob); s = pkglookup(buf, glob);
......
...@@ -66,6 +66,11 @@ Sigt sys·sigt_float64[2] = { (byte*)"float64", ASIMP, 8, nil, END }; ...@@ -66,6 +66,11 @@ Sigt sys·sigt_float64[2] = { (byte*)"float64", ASIMP, 8, nil, END };
Sigt sys·sigt_bool[2] = { (byte*)"bool", ASIMP, 1, nil, END }; Sigt sys·sigt_bool[2] = { (byte*)"bool", ASIMP, 1, nil, END };
Sigt sys·sigt_string[2] = { (byte*)"string", ASTRING, 8, nil, END }; Sigt sys·sigt_string[2] = { (byte*)"string", ASTRING, 8, nil, END };
Sigt sys·sigt_int[2] = { (byte*)"int", ASIMP, 4, nil, END };
Sigt sys·sigt_uint[2] = { (byte*)"uint", ASIMP, 4, nil, END };
Sigt sys·sigt_uintptr[2] = { (byte*)"uintptr", ASIMP, 8, nil, END };
Sigt sys·sigt_float[2] = { (byte*)"float", ASIMP, 4, nil, END };
static void static void
printsigi(Sigi *si) printsigi(Sigi *si)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment