[Python-checkins] r70834 - python/branches/py3k-short-float-repr/Python/dtoa.c

mark.dickinson python-checkins at python.org
Tue Mar 31 18:38:55 CEST 2009


Author: mark.dickinson
Date: Tue Mar 31 18:38:55 2009
New Revision: 70834

Log:
Turn off recognition of hexadecimal floats in dtoa.c, and fix
associated 'undeclared variable' bug.


Modified:
   python/branches/py3k-short-float-repr/Python/dtoa.c

Modified: python/branches/py3k-short-float-repr/Python/dtoa.c
==============================================================================
--- python/branches/py3k-short-float-repr/Python/dtoa.c	(original)
+++ python/branches/py3k-short-float-repr/Python/dtoa.c	Tue Mar 31 18:38:55 2009
@@ -183,6 +183,8 @@
 
 #include "Python.h"
 
+#define NO_HEX_FP
+
 /* use WORDS_BIGENDIAN to determine float endianness.  This assumes that ints
    and floats share the same endianness on the target machine, which appears
    to be true for every platform that Python currently cares about.  We're
@@ -1632,7 +1634,6 @@
 #endif /*No_Hex_NaN*/
 #endif /* INFNAN_CHECK */
 
-#ifndef NO_HEX_FP /*{*/
 #ifdef Pack_32
 #define ULbits 32
 #define kshift 5
@@ -1643,6 +1644,8 @@
 #define kmask 15
 #endif
 
+#ifndef NO_HEX_FP /*{*/
+
  static void
 #ifdef KR_headers
 rshift(b, k) Bigint *b; int k;


More information about the Python-checkins mailing list