mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-19 03:51:38 +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
|
@ -1,3 +1,8 @@
|
|||
2011-12-19 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Source/GSString.m:
|
||||
Fix blocking compiler warning (ggc 4.5.3)
|
||||
|
||||
2011-12-17 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* configure.ac: Try to make detection of compilers which don't support
|
||||
|
|
|
@ -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…
Reference in a new issue