Skip to content

Commit

Permalink
tmplToInt
Browse files Browse the repository at this point in the history
  • Loading branch information
Happypig375 authored Nov 1, 2024
1 parent 90c071e commit 41a24c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/templates/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ func tmplDiv(args ...interface{}) (interface{}, error) {
if i == 0 {
continue
}
if v == 0 {
if tmplToInt(v) == 0 {
return 0, errors.New("integer divide by zero")
}

Expand Down

0 comments on commit 41a24c0

Please sign in to comment.