Build fixes.

This commit is contained in:
Adam Ierymenko 2020-02-21 15:58:28 -08:00
parent 55b0555aa0
commit d603a73715
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,7 @@ public:
{ {
Buf::Slice r; Buf::Slice r;
typename FCV<Buf::Slice,FCVC>::const_iterator s(fcv.begin()); typename FCV<Buf::Slice,FCVC>::iterator s(fcv.begin());
unsigned int l = s->e - s->s; unsigned int l = s->e - s->s;
if (l <= ZT_BUF_MEM_SIZE) { if (l <= ZT_BUF_MEM_SIZE) {
r.b.move(s->b); r.b.move(s->b);

View file

@ -260,7 +260,7 @@ public:
// Slices are TriviallyCopyable and so may be memcpy'd from e->message to // Slices are TriviallyCopyable and so may be memcpy'd from e->message to
// the result parameter. This is fast. // the result parameter. This is fast.
e->message.unsafeMoveTo(message); 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; return COMPLETE;
} }