using nowraparound ints like in C