projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't try to change the value of 'const' variables. Finish statements with semicolon...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
guid.cpp
diff --git
a/synfig-core/trunk/src/synfig/guid.cpp
b/synfig-core/trunk/src/synfig/guid.cpp
index
4598c63
..
ab4046b
100644
(file)
--- 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
)
);
#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
}
#endif