Changeset 34682 in project


Ignore:
Timestamp:
10/04/17 02:43:12 (3 months ago)
Author:
kon
Message:

rmv unneeded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/string-utils/trunk/to-hex.scm

    r34449 r34682  
    2727{
    2828  static char digits[] = "0123456789abcdef";
     29
    2930  in += off;
    3031  while( len-- ) {
     
    3940# define hex_nibble(c)  (isdigit(c) ? ((c) - '0') : (((c) - 'a') + 10))
    4041
    41   static char digits[] = "0123456789abcdef";
    4242  in += off;
    4343  while( 0 <= (len -= 2) ) {
    44     unsigned char in0 = tolower(in[0]);
    45     unsigned char in1 = tolower(in[1]);
    46     *out++ = (hex_nibble(in0) << 4) | hex_nibble(tolower(in1));
     44    unsigned char in0 = tolower( in[0] );
     45    unsigned char in1 = tolower( in[1] );
     46    *out++ = (hex_nibble( in0 ) << 4) | hex_nibble( in1 );
    4747    in += 2;
    4848  }
Note: See TracChangeset for help on using the changeset viewer.