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
fbcbcdbb
Commit
fbcbcdbb
authored
May 29, 2009
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 156
R=r OCL=29623 CL=29623
parent
1c7bee05
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
11 deletions
+2
-11
const.c
src/cmd/gc/const.c
+2
-7
bug156.go
test/fixedbugs/bug156.go
+0
-0
golden.out
test/golden.out
+0
-4
No files found.
src/cmd/gc/const.c
View file @
fbcbcdbb
...
...
@@ -568,22 +568,17 @@ unary:
// result will be (a ^ mask)
switch
(
et
)
{
default:
// signed guys change sign
mpmovecfix
(
&
b
,
-
1
);
break
;
case
TINT8
:
case
TINT16
:
case
TINT32
:
case
TINT64
:
case
TINT
:
et
++
;
// convert to unsigned
// fallthrough
case
TUINT8
:
case
TUINT16
:
case
TUINT32
:
case
TUINT64
:
case
TUINT
:
case
TUINTPTR
:
// unsigned guys invert their bits
mpmovefixfix
(
&
b
,
maxintval
[
et
]);
break
;
}
...
...
test/bugs/bug156.go
→
test/
fixed
bugs/bug156.go
View file @
fbcbcdbb
File moved
test/golden.out
View file @
fbcbcdbb
...
...
@@ -104,10 +104,6 @@ BUG should compile
5 7
BUG: should crash
=========== bugs/bug156.go
bugs/bug156.go:7: constant 18446744073709551615 overflows int64
BUG: bug156
=========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: constant -3 overflows uint
...
...
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