Changing the type of size of datatype from int to uint

kisielk found how to fix the bug. I'm just impatient and want it into the source.