summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-21 08:00:40 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-21 08:00:40 -0700
commiteee59ec9ce583a8d77c40ee87ed08269a8dc9abe (patch)
tree00a436004c6a829f129a6061813b46d70cc39fa6
parent0959d33ba0006e06d2dc5abfc45f4b91258d87c8 (diff)
downloadinfinitytier-eee59ec9ce583a8d77c40ee87ed08269a8dc9abe.tar.gz
infinitytier-eee59ec9ce583a8d77c40ee87ed08269a8dc9abe.zip
Fix Buffer<> version of Dictionary.get().
-rw-r--r--node/Dictionary.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Dictionary.hpp b/node/Dictionary.hpp
index 8a22b8ae..ecad4df0 100644
--- a/node/Dictionary.hpp
+++ b/node/Dictionary.hpp
@@ -223,7 +223,7 @@ public:
template<unsigned int BC>
inline bool get(const char *key,Buffer<BC> &dest) const
{
- const int r = this->get(key,const_cast<char *>(reinterpret_cast<const char *>(dest.data())),C);
+ const int r = this->get(key,const_cast<char *>(reinterpret_cast<const char *>(dest.data())),BC);
if (r >= 0) {
dest.setSize((unsigned int)r);
return true;