Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/repopage.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <assert.h>
#include <fcntl.h>
#include <time.h>
#include <threads.h>

#ifdef _WIN32
#include <windows.h>
Expand Down Expand Up @@ -100,8 +101,8 @@ compress_buf(const unsigned char *in, unsigned int in_len,
unsigned int oo = 0; /* out-offset */
unsigned int io = 0; /* in-offset */
#define HS (65536)
Ref htab[HS];
Ref hnext[BLOCK_SIZE];
static thread_local Ref htab[HS];
static thread_local Ref hnext[BLOCK_SIZE];
unsigned int litofs = 0;
memset(htab, -1, sizeof (htab));
memset(hnext, -1, sizeof (hnext));
Expand Down