]> granicus.if.org Git - libexpat/commitdiff
xmltok.c: Address warnings about accidental non-ASCII dashes in comments (#355)
authorSebastian Pipping <sebastian@pipping.org>
Tue, 1 Oct 2019 19:50:11 +0000 (21:50 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 1 Oct 2019 19:50:52 +0000 (21:50 +0200)
expat/Changes
expat/lib/xmltok.c

index 1bb41a037ffec5fe6f08f0287d0e3e216fbb5890..e7b17038ceaaa2d5f99ab2a7bd0c72b5363c2df2 100644 (file)
@@ -5,7 +5,10 @@ NOTE: We are looking for help with a few things:
 Release x.x.x xxx xxxxxxxxx xx xxxx
         Other changes:
             #354  Fix testsuite for -DEXPAT_DTD=OFF and -DEXPAT_NS=OFF, each
-            #354  Address compiler warnings
+       #354 #355  Address compiler warnings
+
+        Special thanks to:
+            Ma Lin
 
 Release 2.2.9 Wed September 25 2019
         Other changes:
index 11e9d1ccdad423e1845dc8d0e23da877c784a6fa..c4f9897f7dc8905e5c020f590bab4efdfefe0b30 100644 (file)
@@ -589,13 +589,13 @@ static const struct normal_encoding ascii_encoding
 static int PTRFASTCALL
 unicode_byte_type(char hi, char lo) {
   switch ((unsigned char)hi) {
-  /* 0xD8000xDBFF first 16-bit code unit or high surrogate (W1) */
+  /* 0xD800-0xDBFF first 16-bit code unit or high surrogate (W1) */
   case 0xD8:
   case 0xD9:
   case 0xDA:
   case 0xDB:
     return BT_LEAD4;
-  /* 0xDC000xDFFF second 16-bit code unit or low surrogate (W2) */
+  /* 0xDC00-0xDFFF second 16-bit code unit or low surrogate (W2) */
   case 0xDC:
   case 0xDD:
   case 0xDE: