Răsfoiți Sursa

Merge pull request #296 from Dmitry-Me/assertForImpossibleCase

Assert for impossible case
Lee Thomason 11 ani în urmă
părinte
comite
245bee08d6
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      tinyxml2.cpp

+ 2 - 1
tinyxml2.cpp

@@ -346,8 +346,9 @@ void XMLUtil::ConvertUTF32ToUTF8( unsigned long input, char* output, int* length
         case 1:
             --output;
             *output = (char)(input | FIRST_BYTE_MARK[*length]);
-        default:
             break;
+        default:
+            TIXMLASSERT( false );
     }
 }