[PATCH 4.14 58/82] proc: Avoid mixing integer types in mem_rw()