Commit 0a6d8356 authored by Russ Cox's avatar Russ Cox

print uint64 as uint64.

R=ken
OCL=29568
CL=29570
parent e2613711
......@@ -8,6 +8,7 @@ char *sysimport =
"func sys.printbool (? bool)\n"
"func sys.printfloat (? float64)\n"
"func sys.printint (? int64)\n"
"func sys.printuint (? uint64)\n"
"func sys.printstring (? string)\n"
"func sys.printpointer (? any)\n"
"func sys.printiface (? any)\n"
......
......@@ -16,6 +16,7 @@ func panicl(int32);
func printbool(bool);
func printfloat(float64);
func printint(int64);
func printuint(uint64);
func printstring(string);
func printpointer(any);
func printiface(any);
......
......@@ -2290,7 +2290,10 @@ loop:
on = syslook("printarray", 1);
argtype(on, l->type); // any-1
} else if(isint[et]) {
on = syslook("printint", 0);
if(et == TUINT64)
on = syslook("printuint", 0);
else
on = syslook("printint", 0);
} else if(isfloat[et]) {
on = syslook("printfloat", 0);
} else if(et == TBOOL) {
......
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