Skip to content

Commit f652538

Browse files
Fix code scanning alert no. 3: Incorrect conversion between integer types
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: pk910 <github@pk910.de>
1 parent 2e04d2b commit f652538

File tree

1 file changed

+1
-1
lines changed
  • pkg/coordinator/web/handlers

1 file changed

+1
-1
lines changed

pkg/coordinator/web/handlers/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (fh *FrontendHandler) LogsData(w http.ResponseWriter, r *http.Request) {
4242
}
4343

4444
// Check bounds before converting to int
45-
if sinceTime < math.MinInt || sinceTime > math.MaxInt {
45+
if sinceTime < math.MinInt32 || sinceTime > math.MaxInt32 {
4646
fmt.Printf("timestamp out of int bounds: %v", sinceTime)
4747
sinceTime = 0
4848
}

0 commit comments

Comments
 (0)