Fix int parsing

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-06 09:43:03 +01:00
parent 63bf983e59
commit 8152609f69

View File

@@ -288,8 +288,8 @@ func (b *Builder) getEnvOrDefault(key, defaultValue string) string {
func (b *Builder) getEnvIntOrDefault(key string, defaultValue int) int {
if value := b.getEnv(key); value != "" {
if intValue, err := strconv.Atoi(value); err == nil {
return intValue
if intValue, err := strconv.ParseInt(value, 10, 32); err == nil {
return int(intValue)
}
}
return defaultValue