Define GS_SINT64 properly. Don't use casts as lvalues.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18707 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2004-02-28 16:55:34 +00:00
parent 9f84bb2533
commit ed2106be5c
4 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2004-02-28 17:52 Alexander Malmberg <alexander@malmberg.org>
* configure.ac, configure: Define GS_UINT64 properly if there is
no 64-bit integer type.
* Source/NSIndexSet.m: Don't use casts as lvalues.
2004-02-27 <woudshoo@agilisys.com>
* Tools/gdomap.c: when using MinGW do not try to chdir to /tmp

View file

@ -194,7 +194,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
{
GSIArrayClear(_array);
NSZoneFree([self zone], _array);
_array = 0;
_data = 0;
}
[super dealloc];
}
@ -402,7 +402,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
}
else
{
_array = (GSIArray)NSZoneMalloc([self zone], sizeof(GSIArray_t));
_data = (GSIArray)NSZoneMalloc([self zone], sizeof(GSIArray_t));
GSIArrayInitWithZoneAndCapacity(_array, [self zone], 1);
GSIArrayAddItem(_array, (GSIArrayItem)aRange);
}
@ -424,7 +424,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
{
unsigned i;
_array = (GSIArray)NSZoneMalloc([self zone], sizeof(GSIArray_t));
_data = (GSIArray)NSZoneMalloc([self zone], sizeof(GSIArray_t));
GSIArrayInitWithZoneAndCapacity(_array, [self zone], count);
for (i = 0; i < count; i++)
{
@ -551,7 +551,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
{
if (_array == 0)
{
_array = (GSIArray)NSZoneMalloc([self zone], sizeof(GSIArray_t));
_data = (GSIArray)NSZoneMalloc([self zone], sizeof(GSIArray_t));
GSIArrayInitWithZoneAndCapacity(_array, [self zone], 1);
}
if (GSIArrayCount(_array) == 0)

2
configure vendored
View file

@ -6025,7 +6025,7 @@ else
# 64-bit ints not supported - but we need a dummy type for byte-swapping
# of 64-bit values arriving from another system.
GS_SINT64="struct { gsu8 a8; }"
GS_SINT64="struct { gsu8 a8; }"
GS_UINT64="struct { gsu8 a8; }"
GS_HAVE_I64=0
fi
fi

View file

@ -296,7 +296,7 @@ else
# 64-bit ints not supported - but we need a dummy type for byte-swapping
# of 64-bit values arriving from another system.
GS_SINT64="struct { gsu8 a[8]; }"
GS_SINT64="struct { gsu8 a[8]; }"
GS_UINT64="struct { gsu8 a[8]; }"
GS_HAVE_I64=0
fi
fi