Commit 7b4d7196 authored by Robert Griesemer's avatar Robert Griesemer

- removed need for int() conversion now that x << s has correct type

- updated golden.out

R=r
DELTA=9  (0 added, 8 deleted, 1 changed)
OCL=14657
CL=14657
parent 944ad62e
...@@ -193,8 +193,6 @@ fixedbugs/bug015.go:7: overflow converting constant to <int64>INT64 ...@@ -193,8 +193,6 @@ fixedbugs/bug015.go:7: overflow converting constant to <int64>INT64
=========== fixedbugs/bug016.go =========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: overflow converting constant to <uint32>UINT32 fixedbugs/bug016.go:7: overflow converting constant to <uint32>UINT32
fixedbugs/bug016.go:7: illegal types for operand: AS
(<int32>INT32)
=========== fixedbugs/bug025.go =========== fixedbugs/bug025.go
fixedbugs/bug025.go:7: variable exported but not defined: Foo fixedbugs/bug025.go:7: variable exported but not defined: Foo
...@@ -227,10 +225,6 @@ ok ...@@ -227,10 +225,6 @@ ok
fixedbugs/bug073.go:8: illegal types for operand: LSH fixedbugs/bug073.go:8: illegal types for operand: LSH
(<int32>INT32) (<int32>INT32)
(<int32>INT32) (<int32>INT32)
fixedbugs/bug073.go:8: illegal types for operand: AS
(<int32>INT32)
fixedbugs/bug073.go:9: illegal types for operand: RSH fixedbugs/bug073.go:9: illegal types for operand: RSH
(<int32>INT32) (<int32>INT32)
(<int32>INT32) (<int32>INT32)
fixedbugs/bug073.go:9: illegal types for operand: AS
(<int32>INT32)
...@@ -47,9 +47,7 @@ type HashMap struct { ...@@ -47,9 +47,7 @@ type HashMap struct {
func (m *HashMap) capacity() uint32 { func (m *HashMap) capacity() uint32 {
// TODO we need to figure out how to determine the type of return 1 << m.log2_capacity_;
// a shifted 'untyped' int so we can get rid of the conversion
return uint32(1) << m.log2_capacity_;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment