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

[BUG] Error Occurs During Type Conversion in seq Function When 0 is Included #464

Open
minghao-du opened this issue May 3, 2024 · 0 comments

Comments

@minghao-du
Copy link

Describe the bug
When there is a 0 in seq, an error occurs during type conversion: Error: Failed conversion from type 'Integer' to type 'RealPos'.

To Reproduce
0.1 * seq(1, 99, 1) runs normally, but running 0.1 * seq(0, 99, 1) prompts an error: Error: Failed conversion from type 'Integer' to type 'RealPos'. I guess it's because the vector contains 0.

PS: 0.1 * seq(0.0, 99, 1) also runs normally.

Expected behavior
0.1 * seq(0, 99, 1) can run normally.

Screenshots
image

Computer info
I am using a Mac, and the version of RevBayes I am using is development (rapture-2545-g7c2b56).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant