I’m doing you a favor

  • TheyCallMeHacked
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago
    LooooongCounter operator++(const LooooongCounter& c) {
        if(c.lowPart == ULONG_MAX) {
            c.highPart++;
            c.lowPart = 0;
        }
        else c.lowPart++;
    }