do not assume char is signed by default; ok maintainer Ian
This commit is contained in:
parent
cf65a17c62
commit
9d70d2f293
13
sysutils/contool/patches/patch-lex_c
Normal file
13
sysutils/contool/patches/patch-lex_c
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-lex_c,v 1.1 2002/12/11 23:31:20 pvalchev Exp $
|
||||
--- lex.c.orig Wed Dec 11 13:30:45 2002
|
||||
+++ lex.c Wed Dec 11 13:31:11 2002
|
||||
@@ -126,7 +126,8 @@ char *s;
|
||||
/************************************************************************/
|
||||
PRIVATE int yylex()
|
||||
|
||||
-{ register char c, c1, *p;
|
||||
+{ register signed char c, c1;
|
||||
+ register char *p;
|
||||
register int i, j, val;
|
||||
double atof();
|
||||
|
12
sysutils/contool/patches/patch-parse_y
Normal file
12
sysutils/contool/patches/patch-parse_y
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-parse_y,v 1.1 2002/12/11 23:31:20 pvalchev Exp $
|
||||
--- parse.y.orig Wed Dec 11 13:27:40 2002
|
||||
+++ parse.y Wed Dec 11 13:27:51 2002
|
||||
@@ -37,7 +37,7 @@ PRIVATE char *get_last_token();
|
||||
PRIVATE Filter *curr;
|
||||
PRIVATE char *curr_file;
|
||||
PRIVATE int line_count = 1;
|
||||
-PRIVATE char lastc = -1;
|
||||
+PRIVATE signed char lastc = -1;
|
||||
|
||||
%}
|
||||
|
Loading…
Reference in New Issue
Block a user