Explorar o código

Assert for impossible case

Dmitry-Me %!s(int64=11) %!d(string=hai) anos
pai
achega
33bb764d12
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      tinyxml2.cpp

+ 2 - 1
tinyxml2.cpp

@@ -338,8 +338,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 );
     }
 }