Skip to content

Commit

Permalink
fix(arm): use correct type casting for ints in azure scan
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin authored and simar7 committed Jul 20, 2023
1 parent 9046b67 commit cb7abb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scanners/azure/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (v Value) AsInt() int {
if v.Kind != KindNumber {
return 0
}
return int(v.rLit.(float64))
return int(v.rLit.(int64))
}

func (v Value) AsFloat() float64 {
Expand Down

0 comments on commit cb7abb6

Please sign in to comment.