9
nptr
7y

try {
m_tick++;
}
catch(...) {
m_tick = 0;
}

someone was very confused...
yes, m_tick is an unsigned builtin type

Comments
  • 2
    while(true){
    try
    {
    m_tick++;
    }
    catch()
    {
    m_tick=0;
    }}

    Now were talking
  • 2
    What is catching? An integer overflow or what?
  • 1
    vcs history doesn't reach back far enough to see, but probably.

    point is, uints dont throw.. instead they nicely wrap around per definition.
Add Comment