]> Cypherpunks repositories - gostls13.git/commitdiff
os: make return type of FileInfo.Permission() consistent with related functions
authorScott Lawrence <bytbox@gmail.com>
Tue, 24 Aug 2010 00:38:52 +0000 (10:38 +1000)
committerRob Pike <r@golang.org>
Tue, 24 Aug 2010 00:38:52 +0000 (10:38 +1000)
(uint32 rather than int)

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/1958048

src/pkg/os/types.go

index 0e76e90be03ba65e6f92ab1ba374a1d74ce13800..79f6e9d497689629c82f50c29bbcb62cf77a22b3 100644 (file)
@@ -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 }