Explorar el Código

Assert for impossible case

Dmitry-Me hace 11 años
padre
commit
33bb764d12
Se han modificado 1 ficheros con 2 adiciones y 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 );
     }
 }