Commit 0c3881b5 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Run gofmt.

parent 8c884fd9
...@@ -247,7 +247,7 @@ func (m *int64HandleMap) Has(handle uint64) bool { ...@@ -247,7 +247,7 @@ func (m *int64HandleMap) Has(handle uint64) bool {
func (m *int64HandleMap) Decode(handle uint64) (val *Handled) { func (m *int64HandleMap) Decode(handle uint64) (val *Handled) {
ptrBits := uintptr(handle & (1<<45 - 1)) ptrBits := uintptr(handle & (1<<45 - 1))
check := uint32(handle >> 45) check := uint32(handle >> 45)
val = (*Handled)(unsafe.Pointer(ptrBits<<3)) val = (*Handled)(unsafe.Pointer(ptrBits << 3))
if val.check != check { if val.check != check {
msg := fmt.Sprintf("handle check mismatch; handle has 0x%x, object has 0x%x: %v", msg := fmt.Sprintf("handle check mismatch; handle has 0x%x, object has 0x%x: %v",
check, val.check, val.object) check, val.check, val.object)
......
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