We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f167dc commit 2a733b6Copy full SHA for 2a733b6
1 file changed
internal/flashduty/log.go
@@ -205,11 +205,8 @@ func fmtAny(v any) string {
205
206
// appendInt appends an int64 to the buffer.
207
func appendInt(buf []byte, x int64) []byte {
208
- if x < 0 {
209
- buf = append(buf, '-')
210
- x = -x
211
- }
212
- return appendUint(buf, uint64(x))
+ // Use strconv.AppendInt to avoid integer overflow issues
+ return strconv.AppendInt(buf, x, 10)
213
}
214
215
// appendUint appends a uint64 to the buffer.
0 commit comments