Skip to content

Commit f946665

Browse files
committed
Typo fix
typo fix
1 parent 3e5c9a6 commit f946665

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/stdlib_hashmap_chaining.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ module subroutine map_chain_entry(map, key, other, conflict)
571571
call copy_key( key, new_ent % key )
572572
!if ( present(other) ) new_ent % other = other
573573
if ( present(other) ) then
574-
if ALLOCATED(new_ent % other) deallocate(new_ent % other)
574+
if ( allocated(new_ent % other) ) deallocate(new_ent % other)
575575
allocate(new_ent % other, source = other)
576576
endif
577577
if ( new_ent % inmap == 0 ) then

src/stdlib_hashmap_open.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ module subroutine map_open_entry(map, key, other, conflict)
555555
call copy_key( key, new_ent % key )
556556
if ( present( other ) ) then
557557
!new_ent % other = other
558-
if ALLOCATED(new_ent % other) deallocate(new_ent % other)
558+
if ( allocated(new_ent % other) ) deallocate(new_ent % other)
559559
allocate(new_ent % other, source = other)
560560
endif
561561
inmap = new_ent % inmap

0 commit comments

Comments
 (0)