[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: x_autonumber.c



  User: danmc   
  Date: 06/12/22 18:28:18

  Modified:    .        x_autonumber.c
  Log:
  cast isdigit() args to ints
  
  
  Revision  Changes    Path
  1.6       +3 -3      eda/geda/gaf/gschem/src/x_autonumber.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_autonumber.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_autonumber.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- x_autonumber.c	21 Dec 2006 18:00:28 -0000	1.5
  +++ x_autonumber.c	22 Dec 2006 23:28:17 -0000	1.6
  @@ -345,11 +345,11 @@
       isnumbered = 0;
     }
     else {
  -    if (!isdigit(o_current->text->string[len])) /* has at least one digit */
  +    if (!isdigit( (int) (o_current->text->string[len]) )) /* has at least one digit */
         return AUTONUMBER_IGNORE;
       
       for (i=len+1; o_current->text->string[i]; i++) /* and only digits */
  -      if (!isdigit(o_current->text->string[i]))
  +      if (!isdigit( (int) (o_current->text->string[i]) ))
   	return AUTONUMBER_IGNORE;
     }
     
  @@ -716,7 +716,7 @@
   	      for (i = strlen(o_current->text->string)-1;
   		   (i >= strlen(searchtext))
   		     && (o_current->text->string[i] == '?'
  -			 || isdigit(o_current->text->string[i]));
  +			 || isdigit( (int) (o_current->text->string[i]) ));
   		   i--)
   		; /* void */
   		
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs