Skip to content

Commit 69cef69

Browse files
committed
Fix build on 32bit platforms
Reproduce with: $ GOARCH=386 go test -v github.com/notaryproject/notation-go ./notation_test.go:763:26: cannot use math.MaxInt64 (untyped int constant 9223372036854775807) as int value in struct literal (overflows) FAIL github.com/notaryproject/notation-go [build failed] FAIL Signed-off-by: Reinhard Tartler <[email protected]>
1 parent 2bc67e7 commit 69cef69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ func TestLocalContent(t *testing.T) {
760760
// verify the artifact
761761
verifyOpts := VerifyOptions{
762762
ArtifactReference: artifactReference,
763-
MaxSignatureAttempts: math.MaxInt64,
763+
MaxSignatureAttempts: math.MaxInt,
764764
}
765765
policyDocument := dummyPolicyDocument()
766766
verifier := dummyVerifier{&policyDocument, mock.PluginManager{}, false, *trustpolicy.LevelStrict, false}

0 commit comments

Comments
 (0)