From ac756dc9d648ca4bc12ae2bc7762e6e99073eac0 Mon Sep 17 00:00:00 2001 From: ntrifunovic Date: Sun, 20 Dec 2009 22:03:47 +0000 Subject: [PATCH] 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 --- v2_0/source/utf8/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v2_0/source/utf8/core.h b/v2_0/source/utf8/core.h index 5a55f06..b4d4a1c 100644 --- a/v2_0/source/utf8/core.h +++ b/v2_0/source/utf8/core.h @@ -112,7 +112,8 @@ namespace internal return 0; } - inline bool is_overlong_sequence(uint32_t cp, int length) + template + inline bool is_overlong_sequence(uint32_t cp, octet_difference_type length) { if (cp < 0x80) { if (length != 1)