unsigned char.
Casting to int is particularly useless because that's what the
compiler already does. We need to prevent sign extension, not write
down that we want sign extension.
OK deraadt, kn, miod
-/* $OpenBSD: parse.y,v 1.44 2022/10/09 09:59:31 op Exp $ */
+/* $OpenBSD: parse.y,v 1.45 2022/12/15 08:06:13 florian Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
for ( ; *cp != '\0'; cp++)
if (!(*cp == '.' || *cp == '-' ||
- *cp == '_' || isalnum((int)*cp)))
+ *cp == '_' || isalnum((unsigned char)*cp)))
return 0;
return 1;
}