changeset 48781:d17f48c1b40f

fixed a couple of minor compilation errors in editfns.c
author Ben Key <bkey1@tampabay.rr.com>
date Tue, 10 Dec 2002 07:09:41 +0000
parents a1aba4c3d002
children b02bdb795a5c
files src/editfns.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Tue Dec 10 02:39:15 2002 +0000
+++ b/src/editfns.c	Tue Dec 10 07:09:41 2002 +0000
@@ -3212,7 +3212,7 @@
      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 @@
 	    /* 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
 	  {