aboutsummaryrefslogtreecommitdiff
path: root/zsig/header.go
diff options
context:
space:
mode:
Diffstat (limited to 'zsig/header.go')
-rw-r--r--zsig/header.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/zsig/header.go b/zsig/header.go
index c63a03b..46f29ae 100644
--- a/zsig/header.go
+++ b/zsig/header.go
@@ -15,7 +15,7 @@ type ZHeader struct {
Date time.Time
KeyFile string
Alg string
- BlockSize int
+ BlockSize int64
Sums [][]byte
}
@@ -52,7 +52,7 @@ func Parse(r io.Reader) (ZHeader, error) {
case strings.HasPrefix(line, "algorithm="):
h.Alg = line[10:]
case strings.HasPrefix(line, "blocksize="):
- i, err := strconv.Atoi(line[10:])
+ i, err := strconv.ParseInt(line[10:], 10, 64)
if err != nil {
return ZHeader{}, err
}