Don't try to change the value of 'const' variables. Finish statements with semicolon...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 28 Jan 2008 12:30:46 +0000 (12:30 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 28 Jan 2008 12:30:46 +0000 (12:30 +0000)
git-svn-id: http://svn.voria.com/code@1515 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/guid.cpp

index 4598c63..ab4046b 100644 (file)
@@ -160,11 +160,11 @@ synfig::GUID::hasher(const String& str)
                )
        );
 #else
-       const unsigned int seed(0x3B642879);
-       for(int i=0;i<str.size();i++)
+       unsigned int seed(0x3B642879);
+       for(unsigned int i=0;i<str.size();i++)
        {
-               seed^=(seed*str[i])*i
-               seed=(seed>>(32-(i%24)))^(seed<<(i%24))
+               seed^=(seed*str[i])*i;
+               seed=(seed>>(32-(i%24)))^(seed<<(i%24));
        }
 #endif