소스 검색

Build fixes.

Adam Ierymenko 5 년 전
부모
커밋
d603a73715
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      node/Buf.hpp
  2. 1 1
      node/Defragmenter.hpp

+ 1 - 1
node/Buf.hpp

@@ -147,7 +147,7 @@ public:
 	{
 		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;
 		if (l <= ZT_BUF_MEM_SIZE) {
 			r.b.move(s->b);

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