--- a/ShortFloat.st Wed Oct 26 23:35:39 2016 +0100
+++ b/ShortFloat.st Fri Nov 18 20:48:04 2016 +0000
@@ -1359,23 +1359,23 @@
int len;
if (__isStringLike(formatString)) {
- /*
- * actually only needed on sparc: since thisContext is
- * in a global register, which gets destroyed by printf,
- * manually save it here - very stupid ...
- */
- __BEGIN_PROTECT_REGISTERS__
+ /*
+ * actually only needed on sparc: since thisContext is
+ * in a global register, which gets destroyed by printf,
+ * manually save it here - very stupid ...
+ */
+ __BEGIN_PROTECT_REGISTERS__
- len = snprintf(buffer, sizeof(buffer), __stringVal(formatString), __shortFloatVal(self));
+ len = snprintf(buffer, sizeof(buffer), __stringVal(formatString), __shortFloatVal(self));
- __END_PROTECT_REGISTERS__
+ __END_PROTECT_REGISTERS__
- if (len < 0) goto fail;
+ if (len < 0) goto fail;
- s = __MKSTRING_L(buffer, len);
- if (s != nil) {
- RETURN (s);
- }
+ s = __MKSTRING_L(buffer, len);
+ if (s != nil) {
+ RETURN (s);
+ }
}
fail: ;
%}.
@@ -1438,7 +1438,7 @@
OS, which was not kind enough to give it.
Bad luck - you should increase the swap space on your machine.
"
- ^ ObjectMemory allocationFailureSignal raise.
+ ^ AllocationFailure raise.
"
0.1 asShortFloat storeString
@@ -1631,7 +1631,7 @@
#endif
%}.
^ super mantissa
-
+
"
1.0 asShortFloat exponent
1.0 asShortFloat mantissa