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:
parent
1861083ed1
commit
2ca22999da
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@ namespace internal
|
||||||
return 0;
|
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 (cp < 0x80) {
|
||||||
if (length != 1)
|
if (length != 1)
|
||||||
|
|
Loading…
Reference in a new issue