Skip to content

Commit 25876b7

Browse files
committed
changes following wclodius2
1 parent 8fc4f67 commit 25876b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/stdlib_sorting_ord_sort.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ contains
114114
array_size = size( array, kind=int_size )
115115
if ( present(work) ) then
116116
if ( size( work, kind=int_size) < array_size/2 ) then
117-
error stop "${k1}$_${sname}$_ord_sort: work array too small."
117+
error stop "${k1}$_${sname}$_ord_sort: work array is too small."
118118
endif
119119
! Use the work array as scratch memory
120120
call merge_sort( array, work )

src/stdlib_sorting_sort_index.fypp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ contains
108108
! If necessary allocate buffers to serve as scratch memory.
109109
if ( present(work) ) then
110110
if ( size(work, kind=int_size) < array_size/2 ) then
111-
error stop "work array too small."
111+
error stop "work array is too small."
112112
end if
113113
if ( present(iwork) ) then
114114
if ( size(iwork, kind=int_size) < array_size/2 ) then
115-
error stop "work array too small."
115+
error stop "iwork array is too small."
116116
endif
117117
call merge_sort( array, index, work, iwork )
118118
else
@@ -125,7 +125,7 @@ contains
125125
if ( stat /= 0 ) error stop "Allocation of array buffer failed."
126126
if ( present(iwork) ) then
127127
if ( size(iwork, kind=int_size) < array_size/2 ) then
128-
error stop "work array too small."
128+
error stop "iwork array is too small."
129129
endif
130130
call merge_sort( array, index, buf, iwork )
131131
else

0 commit comments

Comments
 (0)