diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-11 14:15:45 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-11 14:15:45 +0000 |
commit | 01418e969061b0efdf097eb335a6a5861beaf6f6 (patch) | |
tree | 6933f351db8228ab56c4d004d3ead7e55eba283b /py/qstr.c | |
parent | ddd1e188011a021537c87c75f0a9e1818e335d5d (diff) | |
download | micropython-01418e969061b0efdf097eb335a6a5861beaf6f6.tar.gz micropython-01418e969061b0efdf097eb335a6a5861beaf6f6.zip |
py: Fix hard-coded hash for empty qstr (was 0x0000 now 0x1505).
Diffstat (limited to 'py/qstr.c')
-rw-r--r-- | py/qstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ STATIC const qstr_pool_t const_pool = { MP_QSTR_number_of, // corresponds to number of strings in array just below { (const byte*) "\0\0\0\0", // invalid/no qstr has empty data - (const byte*) "\0\0\0\0", // empty qstr + (const byte*) "\x05\x15\0\0", // empty qstr with hash=5381=0x1505 #define Q(id, str) str, #include "genhdr/qstrdefs.generated.h" #undef Q |