From badbd3dcc344f125e301a795c33d2c67cde8d97e Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sat, 6 Nov 2010 00:04:21 +0000 Subject: [PATCH] Compil fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36147 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Author.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Author.cpp b/src/Author.cpp index e88bb7f490..91974b9c2e 100644 --- a/src/Author.cpp +++ b/src/Author.cpp @@ -30,7 +30,7 @@ static int computeHash(docstring const & name, // Bernstein's hash function unsigned int hash = 5381; for (unsigned int i = 0; i < full_author_string.length(); ++i) - hash = ((hash << 5) + hash) + unsigned int(full_author_string[i]); + hash = ((hash << 5) + hash) + (unsigned int)(full_author_string[i]); return int(hash); }