From 4d063b924ec758da6024643d5fcf94e3a98c7ab2 Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 17 Apr 2014 23:27:31 +0000 Subject: [PATCH] runtime: remove use of obsolete map deletion syntax The use of this syntax was eliminated upstream in Go 992248b2adc2, but this particular use slipped through somehow. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209506 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/go/syscall/syscall_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgo/go/syscall/syscall_unix.go b/libgo/go/syscall/syscall_unix.go index 966090a076a..5559c7c69b7 100644 --- a/libgo/go/syscall/syscall_unix.go +++ b/libgo/go/syscall/syscall_unix.go @@ -153,7 +153,7 @@ func (m *mmapper) Munmap(data []byte) (err error) { if errno := m.munmap(uintptr(unsafe.Pointer(&b[0])), uintptr(len(b))); errno != nil { return errno } - m.active[p] = nil, false + delete(m.active, p) return nil } -- 2.11.4.GIT