Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix int64 default should not use base 16 #30

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion env.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func GetIntDefault(envVar string, defaultValue int) int {
// GetInt64Default returns the int64 value of the environment variable, or a default
// value if the environment variable is not defined or is an empty string
func GetInt64Default(envVar string, defaultValue int64) int64 {
val := GetDefault(envVar, strconv.FormatInt(defaultValue, 16))
val := GetDefault(envVar, strconv.FormatInt(defaultValue, 10))
if i, err := strconv.ParseInt(val, 10, 64); err == nil {
return i
}
Expand Down