Skip to content

Commit

Permalink
Merge pull request #300 from LiusCraft/main
Browse files Browse the repository at this point in the history
fix: 32bit build error
  • Loading branch information
IRONICBo authored Mar 14, 2024
2 parents a91a91e + 62a64c0 commit 907a9aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion translation/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ type translateResponse struct {
}

// translateErrorResponse is the error response of translation server
//
//lint:ignore U1000 This is a struct for json unmarshal
type translateErrorResponse struct {
ErrorCode string `json:"error_code"`
Expand Down Expand Up @@ -256,7 +257,7 @@ func generateSeparator() string {
// return fmt.Sprintf("%d", time.Now().Unix())

// Use fixed Separator
return fmt.Sprintf("%d", math.MaxInt64)
return fmt.Sprintf("%d", int32(math.MaxInt32))
}

// Translate translate sequence of bytes
Expand Down

0 comments on commit 907a9aa

Please sign in to comment.