From d603a737158bcdc2d377202840080ba3e197bbc1 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 21 Feb 2020 15:58:28 -0800 Subject: [PATCH] Build fixes. --- node/Buf.hpp | 2 +- node/Defragmenter.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/Buf.hpp b/node/Buf.hpp index 9addacd82..e61a70f71 100644 --- a/node/Buf.hpp +++ b/node/Buf.hpp @@ -147,7 +147,7 @@ public: { Buf::Slice r; - typename FCV::const_iterator s(fcv.begin()); + typename FCV::iterator s(fcv.begin()); unsigned int l = s->e - s->s; if (l <= ZT_BUF_MEM_SIZE) { r.b.move(s->b); diff --git a/node/Defragmenter.hpp b/node/Defragmenter.hpp index 485ea0717..a186e56f2 100644 --- a/node/Defragmenter.hpp +++ b/node/Defragmenter.hpp @@ -260,7 +260,7 @@ public: // Slices are TriviallyCopyable and so may be memcpy'd from e->message to // the result parameter. This is fast. e->message.unsafeMoveTo(message); - e->message.lastUsed = -1; // mark as "done" and force GC to collect + e->lastUsed = -1; // mark as "done" and force GC to collect return COMPLETE; }