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 substr tpl func's int type variant issue #1194

Closed

Conversation

tatsushid
Copy link
Contributor

substr template function takes one or two range arguments. Both
arguments must be int type values but if it is used with a calclation
function e.g. add, len etc, it causes a wrong type error.

This fixes the issue to allow the function to take other integer type
variant like int64 etc.

This also includes a small fix on no range argument case.

Fix #1190

`substr` template function takes one or two range arguments. Both
arguments must be int type values but if it is used with a calclation
function e.g. `add`, `len` etc, it causes a wrong type error.

This fixes the issue to allow the function to take other integer type
variant like `int64` etc.

This also includes a small fix on no range argument case.

Fix gohugoio#1190
@bep
Copy link
Member

bep commented Jun 6, 2015

Merged in 51cabe6

@bep bep closed this Jun 6, 2015
@github-actions
Copy link

github-actions bot commented Mar 2, 2022

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Int Typecast
2 participants