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