summaryrefslogtreecommitdiff
path: root/node/Utils.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2014-08-07 19:08:41 -0700
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2014-08-07 19:08:41 -0700
commit77457cbff14546a6b6173a46c0486767dab60847 (patch)
treeb9c5a7453d89678ed46cc51e51c2387c212e8055 /node/Utils.hpp
parentdb0d17cebba67dec344ee63c3b8ecbdc46f2814a (diff)
downloadinfinitytier-77457cbff14546a6b6173a46c0486767dab60847.tar.gz
infinitytier-77457cbff14546a6b6173a46c0486767dab60847.zip
Windows compile fixes, compiler warning fix, unfreed memory fix in main.c (though it would not have mattered since program exits immediately after).
Diffstat (limited to 'node/Utils.hpp')
-rw-r--r--node/Utils.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Utils.hpp b/node/Utils.hpp
index 0b892cd9..affae9a8 100644
--- a/node/Utils.hpp
+++ b/node/Utils.hpp
@@ -180,7 +180,7 @@ public:
* @return Number of characters actually written
*/
static unsigned int unhex(const char *hex,unsigned int maxlen,void *buf,unsigned int len);
- static inline unsigned int unhex(const std::string &hex,void *buf,unsigned int len) { return unhex(hex.c_str(),hex.length(),buf,len); }
+ static inline unsigned int unhex(const std::string &hex,void *buf,unsigned int len) { return unhex(hex.c_str(),(unsigned int)hex.length(),buf,len); }
/**
* Generate secure random bytes