Fixed bug with size_t replaced with uint on 32bit systems.