Remove rawSeqStore.base and add rawSeqStore.posInSequence

This commit is contained in:
senhuang42
2020-10-07 13:56:25 -04:00
parent cfd2aec1b7
commit ef823e0299
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -266,7 +266,7 @@ static void ZSTDMT_releaseBuffer(ZSTDMT_bufferPool* bufPool, buffer_t buf)
/* ===== Seq Pool Wrapper ====== */
static rawSeqStore_t kNullRawSeqStore = {NULL, NULL, 0, 0, 0};
static rawSeqStore_t kNullRawSeqStore = {NULL, 0, 0, 0, 0};
typedef ZSTDMT_bufferPool ZSTDMT_seqPool;
@@ -277,7 +277,7 @@ static size_t ZSTDMT_sizeof_seqPool(ZSTDMT_seqPool* seqPool)
static rawSeqStore_t bufferToSeq(buffer_t buffer)
{
rawSeqStore_t seq = {NULL, NULL, 0, 0, 0};
rawSeqStore_t seq = {NULL, 0, 0, 0, 0};
seq.seq = (rawSeq*)buffer.start;
seq.capacity = buffer.capacity / sizeof(rawSeq);
return seq;