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
96d7c8d4
Commit
96d7c8d4
authored
Aug 10, 2010
by
Nigel Tao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/draw/x11: temporarily workaround compiler bug 1011.
R=r CC=golang-dev
https://golang.org/cl/1951041
parent
90a6c918
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
auth.go
src/pkg/exp/draw/x11/auth.go
+4
-1
No files found.
src/pkg/exp/draw/x11/auth.go
View file @
96d7c8d4
...
...
@@ -16,7 +16,10 @@ func readU16BE(r io.Reader, b []byte) (uint16, os.Error) {
if
err
!=
nil
{
return
0
,
err
}
return
uint16
(
b
[
0
])
<<
8
+
uint16
(
b
[
1
]),
nil
// TODO(nigeltao): remove the workaround when bug 1011 gets fixed.
//return uint16(b[0])<<8 + uint16(b[1]), nil
ret
:=
uint16
(
b
[
0
])
<<
8
+
uint16
(
b
[
1
])
return
ret
,
nil
}
// readStr reads a length-prefixed string from r, using b as a scratch buffer.
...
...
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