64bit safety fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32732 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-03-29 08:20:25 +00:00
parent 5671f52913
commit 085e0c9761
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2011-03-29 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSTextStorage.m:
Use pointer sized integers in union for 64bit safety.
2011-03-28 Fred Kiefer <FredKiefer@gmx.de>
* Tests/gui/NSSavePanel/setDelegate_reload.m: Switch the save

View file

@ -63,7 +63,7 @@
#define GSI_MAP_RELEASE_VAL(M, X)
#define GSI_MAP_EQUAL(M, X,Y) [(X).obj isEqualToDictionary: (Y).obj]
#define GSI_MAP_KTYPES GSUNION_OBJ
#define GSI_MAP_VTYPES GSUNION_INT
#define GSI_MAP_VTYPES GSUNION_NSINT
#define GSI_MAP_NOCLEAN 1
#include <GNUstepBase/GSIMap.h>
@ -198,7 +198,7 @@ cacheAttributes(NSDictionary *attrs)
}
else
{
node->value.uint++;
node->value.nsu++;
attrs = RETAIN(node->key.obj);
}
AUNLOCK();
@ -219,7 +219,7 @@ unCacheAttributes(NSDictionary *attrs)
node = GSIMapNodeForKeyInBucket(&attrMap, bucket, (GSIMapKey)((id)attrs));
if (node != 0)
{
if (--node->value.uint == 0)
if (--node->value.nsu == 0)
{
GSIMapRemoveNodeFromMap(&attrMap, bucket, node);
GSIMapFreeNode(&attrMap, node);