Skip to content

Commit

Permalink
asdf 2
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <[email protected]>
  • Loading branch information
riftEmber committed Jan 29, 2025
1 parent f3837a2 commit 3b7c9f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/internal/ChapelHashtable.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,16 @@ module ChapelHashtable {

const sizeofElement = _ddata_sizeof_element(ret);

inline proc ptrTo(ref x) {
return c_pointer_return(x);
}

select initMethod {
when ArrayInit.noInit {
// do nothing
}
if c_addrOf(ret[slot]) != ptrTo(ret[slot]) then
halt("waat");
when ArrayInit.serialInit {
for slot in _allSlots(size) {
memset(c_addrOf(ret[slot]), 0:uint(8), sizeofElement.safeCast(c_size_t));
Expand Down

0 comments on commit 3b7c9f3

Please sign in to comment.