stotko / stdgpu

stdgpu: Efficient STL-like Data Structures on the GPU
https://stotko.github.io/stdgpu/
Apache License 2.0
1.16k stars 83 forks source link

src,test: Fix conversion warnings for 64-bit index_t #380

Closed stotko closed 1 year ago

stotko commented 1 year ago

By default, index_t resolves to a 32-bit integer, which on the supported platforms resolves to int. While the complementary 64-bit mode, where it typically resolves to long int is also supported, the code is less frequently tested against a high warning level. Fix the conversion warnings that appeared after manual analysis and compilation in 64-bit index mode.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (5ff3a64) 97.36% compared to head (03a0bed) 97.36%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #380 +/- ## ======================================= Coverage 97.36% 97.36% ======================================= Files 31 31 Lines 2547 2547 ======================================= Hits 2480 2480 Misses 67 67 ``` | [Impacted Files](https://app.codecov.io/gh/stotko/stdgpu/pull/380?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko) | Coverage Δ | | |---|---|---| | [src/stdgpu/impl/vector\_detail.cuh](https://app.codecov.io/gh/stotko/stdgpu/pull/380?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko#diff-c3JjL3N0ZGdwdS9pbXBsL3ZlY3Rvcl9kZXRhaWwuY3Vo) | `94.59% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.