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

Fixes corruption of memory datatypes caused by short circuit logic in modeMemory_t::slice #727

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

kris-rowe
Copy link
Member

Closes #690

Corruption of the original memory's data type can occur when `this` is
returned.
Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Merging #727 (8a7f0be) into development (3612b5d) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##           development     #727   +/-   ##
============================================
  Coverage        75.25%   75.25%           
============================================
  Files              297      297           
  Lines            19327    19328    +1     
============================================
+ Hits             14544    14545    +1     
  Misses            4783     4783           
Files Coverage Δ
src/occa/internal/core/memory.cpp 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

@kris-rowe kris-rowe linked an issue Dec 8, 2023 that may be closed by this pull request
@kris-rowe kris-rowe merged commit 5226290 into libocca:development Dec 8, 2023
8 checks passed
@kris-rowe kris-rowe deleted the bugfix/memory-cast-dtype branch December 8, 2023 20:30
kris-rowe added a commit that referenced this pull request Jan 24, 2024
kris-rowe added a commit that referenced this pull request Mar 12, 2024
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.

memory::cast changes original dtype
1 participant