Fix problem introduced by 2e556603 on 64bit systems

Use "unsigned ints" instead of size_t to avoid 64 bit boxed integers.