is this throwing any warning about unsigned to signed integer conversion ? Please use int32 anyway instead of int