diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-07-06 16:11:11 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-07-06 16:11:11 -0700 |
commit | d2415dee00914ab3fd7016758f4184d46bb407a5 (patch) | |
tree | 3e314c3464b1ddc86423cd1081cf65183e1a0fa4 /node/Dictionary.hpp | |
parent | 53728b79b45417bc8f36464e13121229858f6ca5 (diff) | |
download | infinitytier-d2415dee00914ab3fd7016758f4184d46bb407a5.tar.gz infinitytier-d2415dee00914ab3fd7016758f4184d46bb407a5.zip |
Cleanup.
Diffstat (limited to 'node/Dictionary.hpp')
-rw-r--r-- | node/Dictionary.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/node/Dictionary.hpp b/node/Dictionary.hpp index 0b000f13..6cbbfc0e 100644 --- a/node/Dictionary.hpp +++ b/node/Dictionary.hpp @@ -391,8 +391,7 @@ public: inline bool add(const char *key,uint64_t value) { char tmp[32]; - Utils::ztsnprintf(tmp,sizeof(tmp),"%llx",(unsigned long long)value); - return this->add(key,tmp,-1); + return this->add(key,Utils::hex(value,tmp),-1); } /** @@ -401,8 +400,7 @@ public: inline bool add(const char *key,const Address &a) { char tmp[32]; - Utils::ztsnprintf(tmp,sizeof(tmp),"%.10llx",(unsigned long long)a.toInt()); - return this->add(key,tmp,-1); + return this->add(key,Utils::hex(a.toInt(),tmp),-1); } /** |