We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec56cb7 commit 1ee63f4Copy full SHA for 1ee63f4
events/attributevalue.go
@@ -71,8 +71,7 @@ func (av DynamoDBAttributeValue) Number() string {
71
// of an int64 of the appropriate sign.
72
// Method panics if the attribute is not of type Number.
73
func (av DynamoDBAttributeValue) Integer() (int64, error) {
74
- s, err := strconv.ParseFloat(av.Number(), 64)
75
- return int64(s), err
+ return strconv.ParseInt(av.Number(), 10, 64)
76
}
77
78
// Float provides access to an attribute of type Number.
0 commit comments