Skip to content

Commit

Permalink
fix int overflow when build on 32bits
Browse files Browse the repository at this point in the history
  • Loading branch information
cyril-dashlane committed Dec 29, 2020
1 parent a648ee5 commit 9feff60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hyperv/resource_hyperv_machine_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func resourceHyperVMachineInstance() *schema.Resource {
"memory_maximum_bytes": {
Type: schema.TypeInt,
Optional: true,
Default: 1099511627776,
Default: 2147483647,
},

"memory_minimum_bytes": {
Expand Down Expand Up @@ -284,7 +284,7 @@ func resourceHyperVMachineInstance() *schema.Resource {
Type: schema.TypeInt,
Optional: true,
Default: 1,
ValidateFunc: validation.IntBetween(1, 4294967295),
ValidateFunc: validation.IntBetween(1, 2147483647),
},
"iov_interrupt_moderation": {
Type: schema.TypeString,
Expand Down Expand Up @@ -483,7 +483,7 @@ func resourceHyperVMachineInstance() *schema.Resource {
"disk_number": {
Type: schema.TypeInt,
Optional: true,
Default: MaxUint32,
Default: 0,
},
"resource_pool_name": {
Type: schema.TypeString,
Expand Down

0 comments on commit 9feff60

Please sign in to comment.