Skip to content

Commit

Permalink
v1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Sep 28, 2014
1 parent b030956 commit 8b3c961
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Ndrr1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,10 @@ void Aspect::Offset(const Ndrr1D::integer_type& i)
if (m_pnResidue)
{
*m_pnResidue += i;
while (*m_pnResidue < 0)
{
*m_pnResidue += *m_pnModulus;
}
*m_pnResidue %= *m_pnModulus;
}
}
Expand Down

0 comments on commit 8b3c961

Please sign in to comment.