diff src/doprnt.c @ 647:b39c14581166

[xemacs-hg @ 2001-08-13 04:45:47 by ben] removal of unsigned, size_t, etc.
author ben
date Mon, 13 Aug 2001 04:46:48 +0000
parents 910449c92002
children fdefd0186b75
line wrap: on
line diff
--- a/src/doprnt.c	Wed Aug 08 12:15:04 2001 +0000
+++ b/src/doprnt.c	Mon Aug 13 04:46:48 2001 +0000
@@ -129,8 +129,8 @@
   *returned_num = -1;
   while (start != end && isdigit (*start))
     {
-      if ((size_t) (arg_ptr - arg_convert) >= sizeof (arg_convert) - 1)
- syntax_error ("Format converter number too large", Qunbound);
+      if (arg_ptr - arg_convert >= (int) sizeof (arg_convert) - 1)
+	syntax_error ("Format converter number too large", Qunbound);
       *arg_ptr++ = *start++;
     }
   *arg_ptr = '\0';
@@ -598,7 +598,8 @@
 	      char *text_to_print =
 		alloca_array (char, 32 +
 			      max (spec->minwidth,
-				   max (sizeof (double), sizeof (long)) * 3 +
+				   (int) max (sizeof (double),
+				              sizeof (long)) * 3 +
 				   max (spec->precision, 0)));
 	      char constructed_spec[100];
 	      char *p = constructed_spec;