Skip to content

Commit

Permalink
feat: change 32 to 64 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
wgliyuli committed Nov 6, 2020
1 parent eb4f6c5 commit 40e4e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonyflake/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (i *ID) MarshalJSON() ([]byte, error) {
}

func (i *ID) UnmarshalJSON(b []byte) error {
id, err := strconv.ParseInt(string(b[1:len(b)-1]), 10, 32)
id, err := strconv.ParseInt(string(b[1:len(b)-1]), 10, 64)
if err != nil {
return err
}
Expand Down

0 comments on commit 40e4e20

Please sign in to comment.