int is fun and requires a returned int64 due to code in parseFlags

This commit is contained in:
Hyatt 2023-11-07 07:35:21 -06:00
parent f351698afa
commit bbd6299e53
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -46,7 +46,7 @@ func getEnv[t string | bool | int | int64 | float64](env string, def t) (t, erro
if err != nil {
return (interface{})(int(0)).(t), err
}
output = (interface{})(v.(int)).(t)
output = (interface{})(int(v.(int64))).(t)
case int64:
v, err := typeConversion("int64", val)
if err != nil {