mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Fix blocking compiler warning (ggc 4.5.3)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34327 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
794f436fe9
commit
dddfc5fa7b
2 changed files with 10 additions and 2 deletions
|
@ -793,6 +793,9 @@ static BOOL useTinyStrings;
|
|||
static id
|
||||
createTinyString(const char *str, int length)
|
||||
{
|
||||
unsigned int i;
|
||||
uintptr_t s = TINY_STRING_MASK;
|
||||
|
||||
/* No tiny string support detected at run time, give up
|
||||
*/
|
||||
if (!useTinyStrings)
|
||||
|
@ -813,9 +816,9 @@ createTinyString(const char *str, int length)
|
|||
{
|
||||
return nil;
|
||||
}
|
||||
uintptr_t s = TINY_STRING_MASK;
|
||||
|
||||
s |= length << TINY_STRING_LENGTH_SHIFT;
|
||||
for (unsigned int i = 0 ; i<length ; i++)
|
||||
for (i = 0 ; i<length ; i++)
|
||||
{
|
||||
s |= ((uintptr_t)str[i]) << (57 - (i*7));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue