Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
0a6d8356
Commit
0a6d8356
authored
May 28, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print uint64 as uint64.
R=ken OCL=29568 CL=29570
parent
e2613711
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
src/cmd/gc/builtin.c.boot
src/cmd/gc/builtin.c.boot
+1
-0
src/cmd/gc/sys.go
src/cmd/gc/sys.go
+1
-0
src/cmd/gc/walk.c
src/cmd/gc/walk.c
+4
-1
No files found.
src/cmd/gc/builtin.c.boot
View file @
0a6d8356
...
...
@@ -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"
...
...
src/cmd/gc/sys.go
View file @
0a6d8356
...
...
@@ -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
);
...
...
src/cmd/gc/walk.c
View file @
0a6d8356
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment