Skip to content

Commit

Permalink
fix: type conversion in autoConfigure function for integers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Huck committed Apr 20, 2024
1 parent 6380ebe commit b96cb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sync/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func autoConfigure(object any, config config.CustomMap) {
reflect.Int16,
reflect.Int32,
reflect.Int64:
field.SetInt(value.(int64))
field.SetInt(int64(value.(int)))
case reflect.Bool:
field.SetBool(value.(bool))
case reflect.String:
Expand Down

0 comments on commit b96cb47

Please sign in to comment.