]> code.delx.au - gnu-emacs/commitdiff
fixed a couple of minor compilation errors in editfns.c
authorBen Key <bkey1@tampabay.rr.com>
Tue, 10 Dec 2002 07:09:41 +0000 (07:09 +0000)
committerBen Key <bkey1@tampabay.rr.com>
Tue, 10 Dec 2002 07:09:41 +0000 (07:09 +0000)
src/editfns.c

index 8ab359dea961b60d4fac944aada4ab82923107aa..62bd324dfc1b45ecfca7b2e3d82c50d3b3bc7e59 100644 (file)
@@ -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
          {