summaryrefslogtreecommitdiffstats
path: root/bin/sh/parser.c
diff options
context:
space:
mode:
authorcracauer <cracauer@FreeBSD.org>1999-12-04 17:12:47 +0000
committercracauer <cracauer@FreeBSD.org>1999-12-04 17:12:47 +0000
commit46e40e0c76b9170a8c1a4d7d1236f62a00b8fc19 (patch)
tree9e0185bda733cba83b9384749064019c68481789 /bin/sh/parser.c
parente6035644113e5e89248f5475a5e85a1466f8449f (diff)
downloadFreeBSD-src-46e40e0c76b9170a8c1a4d7d1236f62a00b8fc19.zip
FreeBSD-src-46e40e0c76b9170a8c1a4d7d1236f62a00b8fc19.tar.gz
Fix "subscript has type `char'" warnings by casting to int, as
discussed on -arch.
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r--bin/sh/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index c73dbc2..505cf16 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -1457,7 +1457,7 @@ noexpand(text)
continue;
if (c == CTLESC)
p++;
- else if (BASESYNTAX[c] == CCTL)
+ else if (BASESYNTAX[(int)c] == CCTL)
return 0;
}
return 1;
OpenPOWER on IntegriCloud