Fix for the bug ID: 2857454 [dereference invalid iterator]

git-svn-id: http://svn.code.sf.net/p/utfcpp/code@105 a809a056-fc17-0410-9590-b4f493f8b08e
This commit is contained in:
ntrifunovic 2009-10-29 01:18:27 +00:00 committed by King_DuckZ
parent 262b8f0ab4
commit 85d925e1ab

View file

@ -210,7 +210,7 @@ namespace utf8
throw invalid_utf16(static_cast<uint16_t>(trail_surrogate));
}
else
throw invalid_utf16(static_cast<uint16_t>(*start));
throw invalid_utf16(static_cast<uint16_t>(cp));
}
// Lone trail surrogate