diff --git a/src/util/name.cpp b/src/util/name.cpp index c291c3c34..b75a01002 100644 --- a/src/util/name.cpp +++ b/src/util/name.cpp @@ -440,7 +440,7 @@ public: switch (k) { case LL_ANON: return name(); case LL_STRING: return name(d.read_string().c_str()); - case LL_INT: return name(name(), d.read_unsigned()); + case LL_INT: return name(name(), d.read_unsigned(), true); case LL_STRING_PREFIX: { name prefix = read(); return name(prefix, d.read_string().c_str()); diff --git a/src/util/name.h b/src/util/name.h index 4112139ec..3fec74209 100644 --- a/src/util/name.h +++ b/src/util/name.h @@ -26,6 +26,7 @@ public: struct imp; private: friend int cmp(imp * i1, imp * i2); + friend class name_deserializer; imp * m_ptr; explicit name(imp * p); explicit name(unsigned k);