Issue #4461: Safety check in parsenumber (ast.c)