summaryrefslogtreecommitdiff
path: root/py/qstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/qstr.c')
-rw-r--r--py/qstr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/qstr.c b/py/qstr.c
index a06b84f15..e6f86401a 100644
--- a/py/qstr.c
+++ b/py/qstr.c
@@ -251,7 +251,8 @@ qstr qstr_from_strn(const char *str, size_t len) {
}
mp_uint_t qstr_hash(qstr q) {
- return Q_GET_HASH(find_qstr(q));
+ const byte *qd = find_qstr(q);
+ return Q_GET_HASH(qd);
}
size_t qstr_len(qstr q) {