diff --git a/usr.bin/m4/extern.h b/usr.bin/m4/extern.h index 57a0600b1348..30d3b95334c4 100644 --- a/usr.bin/m4/extern.h +++ b/usr.bin/m4/extern.h @@ -163,7 +163,7 @@ static __inline int gpbc(void) if (bp > bufbase) { if (*--bp) - return (*bp); + return ((unsigned char)*bp); else return (EOF); }