Author: rfm
Date: Sun Jun 19 09:42:36 2016
New Revision: 39878
URL: http://svn.gna.org/viewcvs/gnustep?rev=39878&view=rev
Log:
fix for big endian LP64 systems
Modified:
libs/base/trunk/ChangeLog
libs/base/trunk/Source/cifframe.m
Modified: libs/base/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=39878&r1=39877&r2=39878&view=diff
==============================================================================
--- libs/base/trunk/ChangeLog (original)
+++ libs/base/trunk/ChangeLog Sun Jun 19 09:42:36 2016
@@ -1,3 +1,11 @@
+2016-06-19 Richard Frith-Macdonald <[email protected]>
+
+ * Source/cifframe.m: Use sizeof(NSInteger) as the buffer size for
+ small scalars if we are on an LP64 machine.
+ * Source/NSOperation.m: Retain operation while taking it from queue,
+ releasing after it is finished. Prevent crash if the original owner
+ of the operation releases it while it's in the queue.
+
2016-06-17 Richard Frith-Macdonald <[email protected]>
* Source/GSHTTPURLHandle.m:
Modified: libs/base/trunk/Source/cifframe.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/cifframe.m?rev=39878&r1=39877&r2=39878&view=diff
==============================================================================
--- libs/base/trunk/Source/cifframe.m (original)
+++ libs/base/trunk/Source/cifframe.m Sun Jun 19 09:42:36 2016
@@ -45,9 +45,15 @@
#import "GSInvocation.h"
#import "GSPrivate.h"
+/* For each architecture, we need to know the native word size to
+ * which smaller integral types are promoted when they are passed
+ * as function arguments or return type.
+ */
#if defined(ALPHA) || (defined(MIPS) && (_MIPS_SIM == _ABIN32))
typedef long long smallret_t;
#elif defined(__sparc)
+typedef NSInteger smallret_t;
+#elif defined(__LP64__)
typedef NSInteger smallret_t;
#else
typedef int smallret_t;
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs