Fix for the bug ID: 2915657 - 64bit portability issue

git-svn-id: http://svn.code.sf.net/p/utfcpp/code@110 a809a056-fc17-0410-9590-b4f493f8b08e
This commit is contained in:
ntrifunovic 2009-12-20 22:03:47 +00:00 committed by King_DuckZ
parent 1861083ed1
commit 2ca22999da

View file

@ -112,7 +112,8 @@ namespace internal
return 0;
}
inline bool is_overlong_sequence(uint32_t cp, int length)
template <typename octet_difference_type>
inline bool is_overlong_sequence(uint32_t cp, octet_difference_type length)
{
if (cp < 0x80) {
if (length != 1)