Skip to content

Commit

Permalink
Quiet more warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoel committed Dec 8, 2023
1 parent c5b5d6d commit 91233da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/linad99/dvsort2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ dvector sort(const dvector& v, int NSTACK)
i=l;
j=ir;
fx=(fx*FA+FC) % FM;
iq=l+((ir-l+1)*fx)/FM;
iq=l+((ir-l+1)*static_cast<int>(fx))/FM;
if (iq<=0)
{
iq=l+((ir-l+1.0)*fx)/FM;
iq=l+((ir-l+1)*static_cast<int>(fx))/FM;
}
a=arr[iq];
arr[iq]=arr[l];
Expand Down Expand Up @@ -176,10 +176,10 @@ dvector sort(const dvector& _v, const ivector& _index, int NSTACK)
i=l;
j=ir;
fx=(fx*FA+FC) % FM;
iq=l+((ir-l+1)*fx)/FM;
iq=l+((ir-l+1)*static_cast<int>(fx))/FM;
if (iq<0)
{
iq=l+((ir-l+1.0)*fx)/FM;
iq=l+((ir-l+1)*static_cast<int>(fx))/FM;
}
a=arr[iq];
iii=index[iq];
Expand Down
4 changes: 2 additions & 2 deletions src/linad99/ivsort2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ivector sort(const ivector& v, int NSTACK)
i=l;
j=ir;
fx=(fx*FA+FC) % FM;
iq=l+((ir-l+1)*fx)/FM;
iq=l+((ir-l+1)*static_cast<int>(fx))/FM;
a=arr[iq];
arr[iq]=arr[l];
for (;;)
Expand Down Expand Up @@ -172,7 +172,7 @@ ivector sort(const ivector& _v, const ivector& _index, int NSTACK)
i=l;
j=ir;
fx=(fx*FA+FC) % FM;
iq=l+((ir-l+1)*fx)/FM;
iq=l+((ir-l+1)*static_cast<int>(fx))/FM;
a=arr[iq];
iii=index[iq];
arr[iq]=arr[l];
Expand Down

0 comments on commit 91233da

Please sign in to comment.