From eee59ec9ce583a8d77c40ee87ed08269a8dc9abe Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 21 Jun 2016 08:00:40 -0700 Subject: [PATCH] Fix Buffer<> version of Dictionary.get(). --- node/Dictionary.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/Dictionary.hpp b/node/Dictionary.hpp index 8a22b8aed..ecad4df0c 100644 --- a/node/Dictionary.hpp +++ b/node/Dictionary.hpp @@ -223,7 +223,7 @@ public: template inline bool get(const char *key,Buffer &dest) const { - const int r = this->get(key,const_cast(reinterpret_cast(dest.data())),C); + const int r = this->get(key,const_cast(reinterpret_cast(dest.data())),BC); if (r >= 0) { dest.setSize((unsigned int)r); return true;