浏览代码

Fix Buffer<> version of Dictionary.get().

Adam Ierymenko 9 年之前
父节点
当前提交
eee59ec9ce
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      node/Dictionary.hpp

+ 1 - 1
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;