apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: apr/strings apr_strings.c
Date Tue, 20 Aug 2002 00:13:19 GMT
jim         2002/08/19 17:13:19

  Modified:    strings  apr_strings.c
  Log:
  Allow for behavior to be compile-time
  
  Revision  Changes    Path
  1.40      +3 -1      apr/strings/apr_strings.c
  
  Index: apr_strings.c
  ===================================================================
  RCS file: /home/cvs/apr/strings/apr_strings.c,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- apr_strings.c	19 Aug 2002 21:33:23 -0000	1.39
  +++ apr_strings.c	20 Aug 2002 00:13:19 -0000	1.40
  @@ -355,10 +355,12 @@
   	if (c >= base)
   	    break;
   	val *= base;
  -        if ((neg && (val > acc || (val -= c) > acc))
  +        if ( (any < 0) || (neg && (val > acc || (val -= c) > acc))
                    || (val < acc || (val += c) < acc)) {
               any = -1;
  +#ifdef APR_STRTOI64_OVERFLOW_IS_BAD_CHAR
               break;
  +#endif
           } else {
               acc = val;
   	    any = 1;
  
  
  

Mime
View raw message