Skip to content

Commit 6b55b9d

Browse files
fix issie with zero length arrays
1 parent a4b07af commit 6b55b9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/internal/pycore_typecache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct type_cache {
2323
uint32_t version_tag;
2424
uint32_t available;
2525
uint32_t used;
26-
struct type_cache_entry hashtable[0];
26+
struct type_cache_entry hashtable[1];
2727
};
2828

2929
struct _PyTypeCacheLookupResult {

0 commit comments

Comments
 (0)