Diff for /parser3/src/lib/punycode/pa_punycode.c between versions 1.3 and 1.4

version 1.3, 2015/10/12 20:56:35 version 1.4, 2015/10/12 21:01:14
Line 109  static char encode_digit (punycode_uint Line 109  static char encode_digit (punycode_uint
 /* (uppercase).  The behavior is undefined if bcp is not a  */  /* (uppercase).  The behavior is undefined if bcp is not a  */
 /* basic code point.                                        */  /* basic code point.                                        */
   
 #define flagged(bcp) ((punycode_uint)(bcp) - 65 < 26)  #define flagged(bcp) (unsigned char)((punycode_uint)(bcp) - 65 < 26)
   
 /* encode_basic(bcp,flag) forces a basic code point to lowercase */  /* encode_basic(bcp,flag) forces a basic code point to lowercase */
 /* if flag is zero, uppercase if flag is nonzero, and returns    */  /* if flag is zero, uppercase if flag is nonzero, and returns    */
Line 423  int punycode_decode (size_t input_length Line 423  int punycode_decode (size_t input_length
         {          {
           memmove (case_flags + i + 1, case_flags + i, out - i);            memmove (case_flags + i + 1, case_flags + i, out - i);
           /* Case of last ASCII code point determines case flag: */            /* Case of last ASCII code point determines case flag: */
           case_flags[i] = (unsigned char)(flagged (input[in - 1]));            case_flags[i] = flagged (input[in - 1]);
         }          }
   
       memmove (output + i + 1, output + i, (out - i) * sizeof *output);        memmove (output + i + 1, output + i, (out - i) * sizeof *output);

Removed from v.1.3  
changed lines
  Added in v.1.4


E-mail: