File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
stringdtype/stringdtype/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,6 @@ typedef union _npy_static_string_u {
48
48
#define NPY_SHORT_STRING_MAX_SIZE \
49
49
(sizeof(npy_static_string) - 1) // 15 or 7 depending on arch
50
50
51
- // one byte in size is reserved for flags and small string optimization
52
- #define NPY_MAX_STRING_SIZE (1 << (sizeof(size_t) - 1)) - 1
53
-
54
51
// Since this has no flags set, technically this is a heap-allocated string
55
52
// with size zero. Practically, that doesn't matter because we always do size
56
53
// checks before accessing heap data, but that may be confusing. The nice part
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ extern const npy_packed_static_string *NPY_EMPTY_STRING;
21
21
// working with it.
22
22
extern const npy_packed_static_string * NPY_NULL_STRING ;
23
23
24
+ // one byte in size is reserved for flags and small string optimization
25
+ #define NPY_MAX_STRING_SIZE (1 << (sizeof(size_t) - 1)) - 1
26
+
24
27
// Allocates a new buffer for *to_init*, which must be set to NULL before
25
28
// calling this function, filling the newly allocated buffer with the copied
26
29
// contents of the first *size* entries in *init*, which must be valid and
You can’t perform that action at this time.
0 commit comments