Skip to content

Commit 9c5574b

Browse files
chuckyvtjvdp1
andcommitted
Update src/stdlib_hashmap_chaining.f90
Co-authored-by: Jeremie Vandenplas <jeremie.vandenplas@gmail.com>
1 parent 4847f5c commit 9c5574b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stdlib_hashmap_chaining.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ module subroutine get_other_chaining_data( map, key, other, exists )
345345
end if
346346
else if ( associated( map % inverse(inmap) % target ) ) then
347347
if (present(exists) ) exists = .true.
348-
other = map % inverse(inmap) % target % other
348+
allocate(other, source = map % inverse(inmap) % target % other)
349349
else
350350
if ( present(exists) ) then
351351
exists = .false.

0 commit comments

Comments
 (0)