Skip to content

Commit 3bef523

Browse files
committed
fixed a bug if using integer kinds lower than int32
1 parent 1f89ce6 commit 3bef523

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/dag_module.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,8 @@ recursive subroutine quicksort(ilow,ihigh)
795795

796796
! do the normal quicksort:
797797
call partition(ilow,ihigh,ipivot)
798-
call quicksort(ilow,ipivot - 1)
799-
call quicksort(ipivot + 1,ihigh)
798+
call quicksort(ilow,ipivot - 1_ip)
799+
call quicksort(ipivot + 1_ip,ihigh)
800800

801801
end if
802802

test/dag_example_2.f90

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ program dag_example_2
99
implicit none
1010

1111
type(dag) :: d
12-
integer(ip),dimension(:),allocatable :: order
13-
integer(ip) :: istat
1412
integer(ip) :: i,r,c
1513
logical,dimension(:,:),allocatable :: mat !! dependency matrix
1614

@@ -44,8 +42,6 @@ program dag_example_2
4442
label=['hello'], &
4543
attributes=['penwidth=2,arrowhead=none,color=red,fontcolor=red'] )
4644

47-
! [penwidth=1, arrowhead=none]
48-
4945
do i = 1, n_nodes
5046
if (i==7 .or. i==8) then
5147
call d%set_vertex_info(i,label=labels(i), attributes="shape=square,fillcolor=SlateGray1,style=filled")

0 commit comments

Comments
 (0)