aboutsummaryrefslogtreecommitdiff
path: root/cmd/btcheck/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/btcheck/main.go')
-rw-r--r--cmd/btcheck/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/btcheck/main.go b/cmd/btcheck/main.go
index 21cc317..aff241b 100644
--- a/cmd/btcheck/main.go
+++ b/cmd/btcheck/main.go
@@ -21,7 +21,7 @@ func main() {
buf := make([]byte, tor.Info.PieceLength)
for i, p := range tor.Info.Pieces {
off := tor.Info.Offset(i)
- n, err := tor.Info.ReadAt(buf, int64(off))
+ n, err := tor.Info.ReadAt(buf, off)
if err != nil {
log.Fatal(err)
}