Skip to content

Commit f37db78

Browse files
committed
address review: get rid of _py_float_format_unknown in the rest
use _py_float_format_ieee_little_endian as a default.
1 parent 535a297 commit f37db78

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Include/internal/pycore_runtime_init.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern "C" {
1313
#include "pycore_debug_offsets.h" // _Py_DebugOffsets_INIT()
1414
#include "pycore_dtoa.h" // _dtoa_state_INIT()
1515
#include "pycore_faulthandler.h" // _faulthandler_runtime_state_INIT
16-
#include "pycore_floatobject.h" // _py_float_format_unknown
16+
#include "pycore_floatobject.h" // _py_float_format_*
1717
#include "pycore_function.h"
1818
#include "pycore_hamt.h" // _PyHamt_BitmapNode_Type
1919
#include "pycore_import.h" // IMPORTS_INIT
@@ -85,8 +85,8 @@ extern PyTypeObject _PyExc_MemoryError;
8585
.is_global = 1, \
8686
}, \
8787
.float_state = { \
88-
.float_format = _py_float_format_unknown, \
89-
.double_format = _py_float_format_unknown, \
88+
.float_format = _py_float_format_ieee_little_endian, \
89+
.double_format = _py_float_format_ieee_little_endian, \
9090
}, \
9191
.types = { \
9292
.next_version_tag = _Py_TYPE_VERSION_NEXT, \
@@ -233,4 +233,4 @@ extern PyTypeObject _PyExc_MemoryError;
233233
#ifdef __cplusplus
234234
}
235235
#endif
236-
#endif /* !Py_INTERNAL_RUNTIME_INIT_H */
236+
#endif /* !Py_INTERNAL_RUNTIME_INIT_H */

Include/internal/pycore_runtime_structs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ struct _pymem_allocators {
3636
};
3737

3838
enum _py_float_format_type {
39-
_py_float_format_unknown,
4039
_py_float_format_ieee_big_endian,
4140
_py_float_format_ieee_little_endian,
4241
};

0 commit comments

Comments
 (0)