From 33bb764d12ac0e592c6ecbd1dea0c6ce14844add Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Sat, 14 Mar 2015 17:14:00 +0300 Subject: [PATCH] Assert for impossible case --- tinyxml2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index ef00f13..5b32f40 100755 --- a/tinyxml2.cpp +++ b/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 ); } }