Skip to content

Commit 01418e9

Browse files
committed
py: Fix hard-coded hash for empty qstr (was 0x0000 now 0x1505).
1 parent ddd1e18 commit 01418e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/qstr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ STATIC const qstr_pool_t const_pool = {
7676
MP_QSTR_number_of, // corresponds to number of strings in array just below
7777
{
7878
(const byte*) "\0\0\0\0", // invalid/no qstr has empty data
79-
(const byte*) "\0\0\0\0", // empty qstr
79+
(const byte*) "\x05\x15\0\0", // empty qstr with hash=5381=0x1505
8080
#define Q(id, str) str,
8181
#include "genhdr/qstrdefs.generated.h"
8282
#undef Q

0 commit comments

Comments
 (0)