From: Ben Key Date: Tue, 10 Dec 2002 07:09:41 +0000 (+0000) Subject: fixed a couple of minor compilation errors in editfns.c X-Git-Tag: ttn-vms-21-2-B4~12059 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2573153f50c8451949c4333542aba5038cbbc375;p=emacs.git fixed a couple of minor compilation errors in editfns.c --- diff --git a/src/editfns.c b/src/editfns.c index 8ab359dea96..62bd324dfc1 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3212,7 +3212,7 @@ usage: (format STRING &rest OBJECTS) */) string itself, will not be used. Element NARGS, corresponding to no argument, *will* be assigned to in the case that a `%' and `.' occur after the final format specifier. */ - int precision[nargs]; + int * precision = (int *) (_alloca(nargs * sizeof (int))); int longest_format; Lisp_Object val; struct info @@ -3388,7 +3388,7 @@ usage: (format STRING &rest OBJECTS) */) /* Filter out flag value of -1. This is a conditional with omitted operand: the value is PRECISION[N] if the conditional is >=0 and otherwise is 0. */ - thissize = MAX_10_EXP + 100 + (precision[n] > 0 ? : 0); + thissize = MAX_10_EXP + 100 + ((precision[n] > 0)?precision[n]:0); } else {