Use strtoul() instead of strtol() so that hexadecimal constants
with the high bit set don't cause errors.