Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
f095e263
Commit
f095e263
authored
Jul 29, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix type error caused by recent change
R=gri OCL=13545 CL=13545
parent
fce91186
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
errstr_darwin.go
src/syscall/errstr_darwin.go
+2
-2
errstr_linux.go
src/syscall/errstr_linux.go
+2
-2
No files found.
src/syscall/errstr_darwin.go
View file @
f095e263
...
...
@@ -336,11 +336,11 @@ func str(val int64) string { // do it here rather than with fmt to avoid depend
var
buf
[
32
]
byte
;
// big enough for int64
i
:=
len
(
buf
)
-
1
;
for
val
>=
10
{
buf
[
i
]
=
val
%
10
+
'0'
;
buf
[
i
]
=
byte
(
val
%
10
+
'0'
)
;
i
--
;
val
/=
10
;
}
buf
[
i
]
=
val
+
'0'
;
buf
[
i
]
=
byte
(
val
+
'0'
)
;
return
string
(
buf
)[
i
:
len
(
buf
)];
}
...
...
src/syscall/errstr_linux.go
View file @
f095e263
...
...
@@ -410,11 +410,11 @@ func str(val int64) string { // do it here rather than with fmt to avoid depend
var
buf
[
32
]
byte
;
// big enough for int64
i
:=
len
(
buf
)
-
1
;
for
val
>=
10
{
buf
[
i
]
=
val
%
10
+
'0'
;
buf
[
i
]
=
byte
(
val
%
10
+
'0'
)
;
i
--
;
val
/=
10
;
}
buf
[
i
]
=
val
+
'0'
;
buf
[
i
]
=
byte
(
val
+
'0'
)
;
return
string
(
buf
)[
i
:
len
(
buf
)];
}
...
...
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