Skip to content

Conversation

@Tokazama
Copy link
Member

@Tokazama Tokazama commented Jun 2, 2022

No description provided.

@codecov
Copy link

codecov bot commented Jun 2, 2022

Codecov Report

Merging #5 (e602095) into main (1e31677) will not change coverage.
The diff coverage is 85.71%.

@@           Coverage Diff           @@
##             main       #5   +/-   ##
=======================================
  Coverage   50.00%   50.00%           
=======================================
  Files           1        1           
  Lines          36       36           
=======================================
  Hits           18       18           
  Misses         18       18           
Impacted Files Coverage Δ
src/CloseOpenIntervals.jl 50.00% <85.71%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e31677...e602095. Read the comment docs.

Copy link
Member

@chriselrod chriselrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@inline Base.first(r::AbstractCloseOpen{StaticInt{F}}) where {F} = F
@inline Base.step(::AbstractCloseOpen) = 1
@inline Base.last(r::AbstractCloseOpen{<:Union{Int,StaticInt},I}) where {I} = getfield(r,:upper) - 1
@inline Base.last(r::AbstractCloseOpen{<:Union{Int,StaticInt},StaticInt{L}}) where {L} = L - 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this line returned a StaticInt before, but now returns an Int.

I do think that's fine though, Base methods should probably only be returning Int.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was intentional because of the issue mentioned here SciML/Static.jl#64 (comment). It was the quickest fix but if that's a no go we could look for other solutions.

@chriselrod chriselrod merged commit 7eb8c65 into JuliaSIMD:main Jun 3, 2022
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.

2 participants