From 01418e969061b0efdf097eb335a6a5861beaf6f6 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 11 Jan 2015 14:15:45 +0000 Subject: [PATCH] py: Fix hard-coded hash for empty qstr (was 0x0000 now 0x1505). --- py/qstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/qstr.c b/py/qstr.c index 2ede730bb1..44c69dc230 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