Skip to content

Commit

Permalink
all: remove redundant type conversion
Browse files Browse the repository at this point in the history
Change-Id: Iffb04ebd6b4afbe1a13b96b7e7469ec3b3e3380f
GitHub-Last-Rev: 6682724
GitHub-Pull-Request: #396
Reviewed-on: https://go-review.googlesource.com/c/tools/+/428980
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
  • Loading branch information
cuishuang authored and findleyr committed Sep 7, 2022
1 parent b15dac2 commit 5f27e05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/splitdwarf/splitdwarf.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ for input_exe need to allow writing.
oldsym := symtab.Syms[ii]
newsymtab.Syms = append(newsymtab.Syms, oldsym)

linkeditsyms = append(linkeditsyms, macho.Nlist64{Name: uint32(linkeditstringcur),
linkeditsyms = append(linkeditsyms, macho.Nlist64{Name: linkeditstringcur,
Type: oldsym.Type, Sect: oldsym.Sect, Desc: oldsym.Desc, Value: oldsym.Value})
linkeditstringcur += uint32(len(oldsym.Name)) + 1
linkeditstrings = append(linkeditstrings, oldsym.Name)
Expand Down
2 changes: 1 addition & 1 deletion container/intsets/sparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (b *block) min(take bool) int {
if take {
b.bits[i] = w &^ (1 << uint(tz))
}
return b.offset + int(i*bitsPerWord) + tz
return b.offset + i*bitsPerWord + tz
}
}
panic("BUG: empty block")
Expand Down
2 changes: 1 addition & 1 deletion internal/fastwalk/fastwalk_dirent_ino.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ package fastwalk
import "syscall"

func direntInode(dirent *syscall.Dirent) uint64 {
return uint64(dirent.Ino)
return dirent.Ino
}

0 comments on commit 5f27e05

Please sign in to comment.