Commit 6c1da9b7 authored by Kenton Varda's avatar Kenton Varda

Fix compilation problem reported with gcc 4.7.2. Yes, it works in 4.7.3 but not 4.7.2. Sigh.

parent 578f7544
......@@ -1098,7 +1098,7 @@ public:
DynamicValue::Reader value;
word zeroWord[1];
memset(&zeroWord, 0, sizeof(zeroWord));
kj::ArrayPtr<const word> segments[1] = { zeroWord };
kj::ArrayPtr<const word> segments[1] = { kj::arrayPtr(zeroWord, 1) };
SegmentArrayMessageReader emptyMessage(segments);
switch (schema.getProto().which()) {
case schema::Node::CONST:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment