...
Compliant Solution
To provide a true (never negative) nonnegative modulo operation, use the imod() ("integer modulo") inline function:
...
...
To provide a true (never negative) nonnegative modulo operation, use the imod() ("integer modulo") inline function:
...