summaryrefslogtreecommitdiff
path: root/node/Utils.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-26 17:22:20 -0400
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-26 17:22:20 -0400
commit487eb17ec075dd2bdc91f78b41577b070d90f8f5 (patch)
tree1dccfa3836a48cf917934fe5dd01210d9d60d236 /node/Utils.hpp
parent9f16707b0b8ec62de67394bf4884408eb65f2a7a (diff)
downloadinfinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.tar.gz
infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.zip
ZeroTierOne for Windows binary project, builds and runs and mostly works but still some issues with tap.
Diffstat (limited to 'node/Utils.hpp')
-rw-r--r--node/Utils.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/node/Utils.hpp b/node/Utils.hpp
index ff88124b..1a3adec6 100644
--- a/node/Utils.hpp
+++ b/node/Utils.hpp
@@ -102,7 +102,7 @@ public:
* @return Hexadecimal string
*/
static std::string hex(const void *data,unsigned int len);
- static inline std::string hex(const std::string &data) { return hex(data.data(),data.length()); }
+ static inline std::string hex(const std::string &data) { return hex(data.data(),(unsigned int)data.length()); }
/**
* @param hex Hexadecimal ASCII code (non-hex chars are ignored)
@@ -413,7 +413,7 @@ public:
*/
static inline bool writeFile(const char *path,const std::string &s)
{
- return writeFile(path,s.data(),s.length());
+ return writeFile(path,s.data(),(unsigned int)s.length());
}
/**
@@ -422,7 +422,7 @@ public:
* @return Base64-encoded string
*/
static std::string base64Encode(const void *data,unsigned int len);
- inline static std::string base64Encode(const std::string &data) { return base64Encode(data.data(),data.length()); }
+ inline static std::string base64Encode(const std::string &data) { return base64Encode(data.data(),(unsigned int)data.length()); }
/**
* @param data Base64-encoded string
@@ -430,7 +430,7 @@ public:
* @return Decoded binary date
*/
static std::string base64Decode(const char *data,unsigned int len);
- inline static std::string base64Decode(const std::string &data) { return base64Decode(data.data(),data.length()); }
+ inline static std::string base64Decode(const std::string &data) { return base64Decode(data.data(),(unsigned int)data.length()); }
/**
* Split a string by delimiter, with optional escape and quote characters