update go mod, fix possible typecasting issues

This commit is contained in:
alu committed 2026-05-28 20:18:55 +00:00
1 parent 01c1d3cf60
commit a9d55673c7
3 files changed
+17 -13

No files matched your search

+8
View File
@@ -65,3 +65,11 @@ func AnyPrefixes(s string, prefixes []string) string {
return ""
}
func SafeUint64(i int) uint64 {
if i < 0 {
log.Printf("Tried to cast %d to uint64", i)
return 0
}
return uint64(i)
}