diff options
author | ache <ache@FreeBSD.org> | 2002-04-19 19:43:46 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-04-19 19:43:46 +0000 |
commit | 892b6521ac2ca9e1ee195aa312f9c1e627f34e35 (patch) | |
tree | 824468915fcba5b9c608130aaf6fda3f4e79b387 /usr.bin | |
parent | ef6b62c3fa2b1b0077455670cabeff89a4053216 (diff) | |
download | FreeBSD-src-892b6521ac2ca9e1ee195aa312f9c1e627f34e35.zip FreeBSD-src-892b6521ac2ca9e1ee195aa312f9c1e627f34e35.tar.gz |
Prevent sign extension on characters with 8bit set
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/m4/mdef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/m4/mdef.h b/usr.bin/m4/mdef.h index a8864120..46ec643 100644 --- a/usr.bin/m4/mdef.h +++ b/usr.bin/m4/mdef.h @@ -170,7 +170,7 @@ struct input_file { * pushf() - push a call frame entry onto stack * pushs() - push a string pointer onto stack */ -#define gpbc() (bp > bufbase) ? (*--bp ? *bp : EOF) : \ +#define gpbc() (bp > bufbase) ? (*--bp ? (*bp & 0xFF) : EOF) : \ ((chscratch = obtain_char(infile+ilevel)) == '\n' && \ ++inlineno[ilevel], chscratch) #define pushf(x) \ |