summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/expr.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-10-30 15:50:00 +0000
committerjmallett <jmallett@FreeBSD.org>2002-10-30 15:50:00 +0000
commitffb74eb1b4ba64a11ea6a83e592cfc63f9520412 (patch)
treeddfa6eab95e2622646582f9f7512b561417cbc65 /usr.bin/m4/expr.c
parent27376fc3ef4fb2ce16a3ceca92f8c0a9cb2b508d (diff)
downloadFreeBSD-src-ffb74eb1b4ba64a11ea6a83e592cfc63f9520412.zip
FreeBSD-src-ffb74eb1b4ba64a11ea6a83e592cfc63f9520412.tar.gz
When we appear to want a signed value from sizeof(), use ssize_t in the cast,
rather than int.
Diffstat (limited to 'usr.bin/m4/expr.c')
-rw-r--r--usr.bin/m4/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/m4/expr.c b/usr.bin/m4/expr.c
index ffe423f..6e20b7a 100644
--- a/usr.bin/m4/expr.c
+++ b/usr.bin/m4/expr.c
@@ -453,7 +453,7 @@ constant(void)
ungetch();
return num();
}
- for (i = 0; i < (int)sizeof(int); i++) {
+ for (i = 0; i < (ssize_t)sizeof(int); i++) {
if ((c = getch()) == '\'') {
ungetch();
break;
OpenPOWER on IntegriCloud