We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caca084 commit 8dfb789Copy full SHA for 8dfb789
stringdtype/stringdtype/src/static_string.h
@@ -22,7 +22,7 @@ extern const npy_packed_static_string *NPY_EMPTY_STRING;
22
extern const npy_packed_static_string *NPY_NULL_STRING;
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
+#define NPY_MAX_STRING_SIZE ((int64_t)1 << 8 * (sizeof(size_t) - 1)) - 1
26
27
// Handles heap allocations for static strings.
28
typedef struct npy_string_allocator npy_string_allocator;
0 commit comments