Skip to content

Commit 0c4765a

Browse files
committed
Fix unused variable in json_decode_dict_key under FT builds
1 parent 35e2ed0 commit 0c4765a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/msgspec/_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17939,11 +17939,11 @@ json_decode_dict_key(JSONDecoderState *self, TypeNode *type, PathNode *path) {
1793917939
bool is_ascii = true;
1794017940
char *view = NULL;
1794117941
Py_ssize_t size;
17942-
bool is_str = type->types == MS_TYPE_ANY || type->types == MS_TYPE_STR;
1794317942

1794417943
size = json_decode_string_view(self, &view, &is_ascii);
1794517944
if (size < 0) return NULL;
1794617945
#ifndef Py_GIL_DISABLED
17946+
bool is_str = type->types == MS_TYPE_ANY || type->types == MS_TYPE_STR;
1794717947
bool cacheable = is_str && is_ascii && size > 0 && size <= STRING_CACHE_MAX_STRING_LENGTH;
1794817948
if (MS_UNLIKELY(!cacheable)) {
1794917949
return json_decode_dict_key_fallback(self, view, size, is_ascii, type, path);

0 commit comments

Comments
 (0)