fix: use 64 bit indices to avoid overflows#245
Conversation
mhasself
left a comment
There was a problem hiding this comment.
Isn't this the purpose of size_t? It's more self-documenting to use that. I won't insist now though...
Whoops -- but please address @ykyohei 's question about the nblock calculations. If this change is truly needed, there should be a unit test to prove it. |
I had a vague recollection that |
|
Oh wait I don't have permission.. I guess I always had Matthew merge for me... |
|
@mhasself Would it be possible to release a new version of so3g? I would really appreciate it if we could apply this fix on PyPI. |
It's on its way ... |
| auto max = std::max_element(data+start, data+stop); | ||
| val = *max - *min; | ||
| } | ||
| for(int si = start; si < stop; si++) { |
There was a problem hiding this comment.
I think this is the one you missed!
Fixer #244