ral(4): Use unsigned to avoid undefined behavior.
Found by NetBSD's kUBSan
Obtained from: NetBSD (github 5b153f1)