summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2002-04-19 19:43:46 +0000
committerache <ache@FreeBSD.org>2002-04-19 19:43:46 +0000
commit892b6521ac2ca9e1ee195aa312f9c1e627f34e35 (patch)
tree824468915fcba5b9c608130aaf6fda3f4e79b387 /usr.bin/m4
parentef6b62c3fa2b1b0077455670cabeff89a4053216 (diff)
downloadFreeBSD-src-892b6521ac2ca9e1ee195aa312f9c1e627f34e35.zip
FreeBSD-src-892b6521ac2ca9e1ee195aa312f9c1e627f34e35.tar.gz
Prevent sign extension on characters with 8bit set
Diffstat (limited to 'usr.bin/m4')
-rw-r--r--usr.bin/m4/mdef.h2
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) \
OpenPOWER on IntegriCloud