apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject cvs commit: apr/strings apr_strings.c
Date Tue, 13 Aug 2002 13:51:54 GMT
gregames    2002/08/13 06:51:53

  Modified:    strings  apr_strings.c
  Log:
  apr_strtoi64: off-by-one errors in the ebcdic test (i.e. 'I' - 'A' is 8).
  It's much more straightforward to test APR_CHARSET_EBCDIC.
  
  Revision  Changes    Path
  1.38      +1 -1      apr/strings/apr_strings.c
  
  Index: apr_strings.c
  ===================================================================
  RCS file: /home/cvs/apr/strings/apr_strings.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- apr_strings.c	4 Aug 2002 17:22:02 -0000	1.37
  +++ apr_strings.c	13 Aug 2002 13:51:53 -0000	1.38
  @@ -334,7 +334,7 @@
   	    c -= 'A' - 10;
   	else if (c >= 'a' && c <= 'z')
   	    c -= 'a' - 10;
  -#elif (('I' - 'A') == 9) && (('R' - 'J') == 9) && (('Z' - 'S') == 8) 
  +#elif APR_CHARSET_EBCDIC
   	else if (c >= 'A' && c <= 'I')
   	    c -= 'A' - 10;
   	else if (c >= 'J' && c <= 'R')
  
  
  

Mime
View raw message