Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
01418e96
Commit
01418e96
authored
Jan 11, 2015
by
Damien George
Browse files
py: Fix hard-coded hash for empty qstr (was 0x0000 now 0x1505).
parent
ddd1e188
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/qstr.c
View file @
01418e96
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment