[PATCH openEuler-1.0-LTS 108/109] proc: Avoid mixing integer types in mem_rw()