Compil fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36147 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-11-06 00:04:21 +00:00
parent 38e43ce4ca
commit badbd3dcc3

View File

@ -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);
}