Merge pull request #296 from Dmitry-Me/assertForImpossibleCase

Assert for impossible case
This commit is contained in:
Lee Thomason 2015-03-15 16:14:12 -07:00
commit 245bee08d6
1 changed files with 2 additions and 1 deletions

View File

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