Skip to content

Commit 1aaf9de

Browse files
authored
Fix wrong multi-page condition (alpaka-group#259)
1 parent 1d096f3 commit 1aaf9de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/mallocMC/creationPolicies/Scatter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ namespace mallocMC
978978
mem = (void*) counter;
979979
}
980980

981-
if(chunksize < pagesize)
981+
if(chunksize <= pagesize)
982982
deallocChunked(acc, mem, page, chunksize);
983983
else
984984
deallocPageBased(acc, mem, page, chunksize);

0 commit comments

Comments
 (0)