Changeset 34449 in project


Ignore:
Timestamp:
08/30/17 07:25:46 (3 weeks ago)
Author:
kon
Message:

fix C macro call

File:
1 edited

Legend:

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

    r34441 r34449  
    4242  in += off;
    4343  while( 0 <= (len -= 2) ) {
    44     *out++ = (hex_nibble(tolower(in[0])) << 4) | hex_nibble(tolower(in[1]));
     44    unsigned char in0 = tolower(in[0]);
     45    unsigned char in1 = tolower(in[1]);
     46    *out++ = (hex_nibble(in0) << 4) | hex_nibble(tolower(in1));
    4547    in += 2;
    4648  }
Note: See TracChangeset for help on using the changeset viewer.