Skip to content

Commit

Permalink
fixing Incorrect conversion between integer types
Browse files Browse the repository at this point in the history
  • Loading branch information
mfdeveloper508 committed Feb 2, 2023
1 parent 40b2907 commit 56d9b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lib/funds_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (f *FundsType) Validate() error {
return err
}

if strings.ToUpper(string(f.TypeCode)) == FundsTypeD && int(f.DistributionNumber) != len(f.Distributions) {
if strings.ToUpper(string(f.TypeCode)) == FundsTypeD && f.DistributionNumber != int64(len(f.Distributions)) {
return errors.New("number of distributions is not match")
}

Expand Down

0 comments on commit 56d9b41

Please sign in to comment.