From: Scott Lawrence Date: Tue, 24 Aug 2010 00:38:52 +0000 (+1000) Subject: os: make return type of FileInfo.Permission() consistent with related functions X-Git-Tag: weekly.2010-08-25~14 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=668f05aaf15bf12babb0bb8705fc9078d2d9b1cb;p=gostls13.git os: make return type of FileInfo.Permission() consistent with related functions (uint32 rather than int) R=golang-dev, r CC=golang-dev https://golang.org/cl/1958048 --- diff --git a/src/pkg/os/types.go b/src/pkg/os/types.go index 0e76e90be0..79f6e9d497 100644 --- a/src/pkg/os/types.go +++ b/src/pkg/os/types.go @@ -53,4 +53,4 @@ func (f *FileInfo) IsSymlink() bool { return (f.Mode & syscall.S_IFMT) == syscal func (f *FileInfo) IsSocket() bool { return (f.Mode & syscall.S_IFMT) == syscall.S_IFSOCK } // Permission returns the file permission bits. -func (f *FileInfo) Permission() int { return int(f.Mode & 0777) } +func (f *FileInfo) Permission() uint32 { return f.Mode & 0777 }