Change nbsteps() to uint32_t to make it independent from 32/64-bit platform.