Skip to content
Snippets Groups Projects
Commit a9e9dc13 authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Fix off by 1 error when using mod

parent f65efe1e
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ zafl_blockid_t ZUntracer_t::get_blockid(const unsigned p_max)
{
// assert (m_blockid < p_max);
// @todo: issue warning when wrapping around
m_blockid = (m_blockid+1) % (p_max-1);
m_blockid = (m_blockid+1) % p_max;
return m_blockid;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment