diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-06-26 20:52:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-06-26 20:52:19 +0000 |
commit | 032f16e2ebfb529e6acb8d17dda834fd61fcea18 (patch) | |
tree | e9780adfc9742e86c018c8500dd15b600e7c12c8 /tools/lemon | |
parent | 0b36ed83c656cfe1a55e2145956ea0b11b17db5f (diff) |
If length arguments to "%*s" aren't of type "int", cast them to "int",
as that's what C requires them to be.
svn path=/trunk/; revision=3610
Diffstat (limited to 'tools/lemon')
-rw-r--r-- | tools/lemon/lemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lemon/lemon.c b/tools/lemon/lemon.c index ed1624979a..6738308ae9 100644 --- a/tools/lemon/lemon.c +++ b/tools/lemon/lemon.c @@ -25,7 +25,7 @@ ** drh@acm.org ** http://www.hwaci.com/drh/ ** -** $Id: lemon.c,v 1.9 2001/04/23 23:45:35 guy Exp $ +** $Id: lemon.c,v 1.10 2001/06/26 20:52:19 guy Exp $ */ #include <stdio.h> #include <stdarg.h> @@ -1696,17 +1696,17 @@ void optprint(void){ case OPT_INT: case OPT_FINT: fprintf(errstream," %s=<integer>%*s %s\n",op[i].label, - max-strlen(op[i].label)-9,"",op[i].message); + (int)(max-strlen(op[i].label)-9),"",op[i].message); break; case OPT_DBL: case OPT_FDBL: fprintf(errstream," %s=<real>%*s %s\n",op[i].label, - max-strlen(op[i].label)-6,"",op[i].message); + (int)(max-strlen(op[i].label)-6),"",op[i].message); break; case OPT_STR: case OPT_FSTR: fprintf(errstream," %s=<string>%*s %s\n",op[i].label, - max-strlen(op[i].label)-8,"",op[i].message); + (int)(max-strlen(op[i].label)-8),"",op[i].message); break; } } |