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
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/pkg/exp/draw/x11/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