From: dooglus Date: Mon, 28 Jan 2008 12:30:46 +0000 (+0000) Subject: Don't try to change the value of 'const' variables. Finish statements with semicolon... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=efbcf315453f337ecabbe8dfabfe908a09d0c646;p=synfig.git Don't try to change the value of 'const' variables. Finish statements with semicolons. Etc. git-svn-id: http://svn.voria.com/code@1515 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/guid.cpp b/synfig-core/trunk/src/synfig/guid.cpp index 4598c63..ab4046b 100644 --- a/synfig-core/trunk/src/synfig/guid.cpp +++ b/synfig-core/trunk/src/synfig/guid.cpp @@ -160,11 +160,11 @@ synfig::GUID::hasher(const String& str) ) ); #else - const unsigned int seed(0x3B642879); - for(int i=0;i>(32-(i%24)))^(seed<<(i%24)) + seed^=(seed*str[i])*i; + seed=(seed>>(32-(i%24)))^(seed<<(i%24)); } #endif