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

broaden/fix signature of nextprod #35791

Merged
merged 6 commits into from
May 8, 2020
Merged

broaden/fix signature of nextprod #35791

merged 6 commits into from
May 8, 2020

Conversation

stevengj
Copy link
Member

@stevengj stevengj commented May 7, 2020

I noticed that the first argument of nextprod was too narrow (Vector{Int}) whereas the second argument was too broad (::Any, whereas the definition requires ::Real similar to nextpow).

This PR broadens the signature of the first argument to tuples and abstractvectors of <:Integer, while narrowing the second argument to ::Real for consistency with nextpow and integers factor. (The old method couldn't work for any non-Real type anyway since the factors were Vector{Int}, so this shouldn't be breaking.)

@stevengj
Copy link
Member Author

stevengj commented May 7, 2020

CI failures seem unrelated (UndefVarError: @text not defined). Duh, typo.

stevengj and others added 2 commits May 7, 2020 17:39
Co-authored-by: Alex Arslan <ararslan@comcast.net>
@JeffBezanson JeffBezanson merged commit 598d63f into master May 8, 2020
@JeffBezanson JeffBezanson deleted the nextprod_sig branch May 8, 2020 19:06
eschnett pushed a commit to eschnett/julia that referenced this pull request May 11, 2020
Roger-luo pushed a commit to Roger-luo/julia that referenced this pull request May 14, 2020
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

Successfully merging this pull request may close these issues.

3 participants