Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix eq and ne tpl function issue #966

Closed
wants to merge 1 commit into from

Commits on Mar 9, 2015

  1. Fix eq and ne tpl function issue

    `eq` and `ne` template functions don't work as expected when those are
    used with a raw number and a calculated value by add, sub etc. It's
    caused by both numbers type differences. For example, `eq 5 (add 2 3)`
    returns `false` because raw 5 is `int` while `add 2 3` returns 5 with
    `int64`
    
    This normalizes `int`, `uint` and `float` type values to `int64`,
    `uint64` and `float64` before comparing them. Other type of value is
    passed to comparing function without any changes.
    
    Fix gohugoio#961
    tatsushid committed Mar 9, 2015
    Configuration menu
    Copy the full SHA
    b5d2ee2 View commit details
    Browse the repository at this point in the history