aboutsummaryrefslogtreecommitdiff
path: root/py/qstr.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-11 14:15:45 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-11 14:15:45 +0000
commit01418e969061b0efdf097eb335a6a5861beaf6f6 (patch)
tree6933f351db8228ab56c4d004d3ead7e55eba283b /py/qstr.c
parentddd1e188011a021537c87c75f0a9e1818e335d5d (diff)
py: Fix hard-coded hash for empty qstr (was 0x0000 now 0x1505).
Diffstat (limited to 'py/qstr.c')
-rw-r--r--py/qstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/qstr.c b/py/qstr.c
index 2ede730bb..44c69dc23 100644
--- a/py/qstr.c
+++ b/py/qstr.c
@@ -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