Skip to content

Commit

Permalink
Correct conversion between integer types (#6736)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitalipaygude authored Sep 27, 2023
1 parent 00eba18 commit 14512fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/api/nutanix.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func WithNutanixIntFromEnvVar(envVar string, opt func(int) NutanixFiller) Nutani

// WithNutanixInt32FromEnvVar returns a NutanixFiller that sets the given int32 value to the given environment variable.
func WithNutanixInt32FromEnvVar(envVar string, opt func(int32) NutanixFiller) NutanixFiller {
intVar, _ := strconv.Atoi(os.Getenv(envVar))
intVar, _ := strconv.ParseInt(os.Getenv(envVar), 10, 32)
return opt(int32(intVar))
}

Expand Down

0 comments on commit 14512fa

Please sign in to comment.