1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Fixed some more warnings.

This commit is contained in:
jules 2012-09-24 15:45:25 +01:00
parent a180c6c358
commit 6b1654e1d2
47 changed files with 129 additions and 116 deletions

View file

@ -343,7 +343,7 @@ namespace CodeHelpers
const char* t = s.toUTF8();
unsigned int hash = 0;
while (*t != 0)
hash = hashMultiplier * hash + *t++;
hash = hashMultiplier * hash + (unsigned int) *t++;
return hash;
}
@ -387,7 +387,7 @@ namespace CodeHelpers
out << indent << "unsigned int hash = 0;" << newLine
<< indent << "if (" << utf8PointerVariable << " != 0)" << newLine
<< indent << " while (*" << utf8PointerVariable << " != 0)" << newLine
<< indent << " hash = " << hashMultiplier << " * hash + *" << utf8PointerVariable << "++;" << newLine
<< indent << " hash = " << hashMultiplier << " * hash + (unsigned int) *" << utf8PointerVariable << "++;" << newLine
<< newLine
<< indent << "switch (hash)" << newLine
<< indent << "{" << newLine;