10.6 compatibility: Fix some new compiler warnings, and work around apparent regressions in NSTask and -stringByStandardizingPath.
5 // Created by Jens Alfke on 6/23/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
9 #import "IntegerArray.h"
12 @implementation IntegerArray
18 _storage = [[NSMutableData alloc] initWithCapacity: 10*sizeof(SInt32)];
31 - (NSUInteger)count {return _count;}
32 - (const SInt32*) allIntegers {return _integers;}
34 - (SInt32) integerAtIndex: (NSUInteger)index
37 return _integers[index];
40 - (void) setInteger: (SInt32)value atIndex: (NSUInteger)index
43 _integers[index] = value;
46 - (void) addInteger: (SInt32)value
48 [_storage appendBytes: &value length: sizeof(value)];
50 _integers = [_storage mutableBytes];