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

Explicitly promote integers to reals for UDF calls #1296

Merged
merged 3 commits into from
Mar 20, 2023

Conversation

WardBrian
Copy link
Member

Closes stan-dev/stan#2738.

Submission Checklist

  • Run unit tests
  • Documentation
    • If a user-facing facing change was made, the documentation PR is here:
    • OR, no user-facing changes were made

Release notes

Fixes an issue where a user-defined-function expecting real arguments could be passed an integer and exhibit integer behavior like truncating division.

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)

@WardBrian WardBrian added bug Something isn't working cpp-codegen labels Mar 20, 2023
@WardBrian WardBrian requested a review from nhuurre March 20, 2023 18:58
@WardBrian WardBrian merged commit a490a09 into master Mar 20, 2023
@WardBrian WardBrian deleted the fix/int-real-funcall-promotion branch March 20, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cpp-codegen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom c++ function may break when called with int parameters
2 participants