Finish WireEncoder tests and fix a bug.

Change-Id: Iddb6003cf2050aebbda4650a5596342288432fde
This commit is contained in:
Peter Johnson
2015-07-04 10:18:30 -07:00
parent 547e2ad72b
commit 1634773529
2 changed files with 358 additions and 11 deletions

View File

@@ -178,7 +178,7 @@ void WireEncoder::WriteValue(const NT_Value& value) {
Write8(size);
for (std::size_t i = 0; i < size; ++i)
WriteDouble(value.data.arr_double.arr[i] ? 1 : 0);
WriteDouble(value.data.arr_double.arr[i]);
break;
}
case NT_STRING_ARRAY: {