mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
refs is atomic_size_t (#976)
The unassert covers all invalid values rather than a third of them.
This commit is contained in:
parent
450d9b1d43
commit
8dd348067b
2 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@
|
|||
#include "libc/thread/tls.h"
|
||||
#include "libc/zip.internal.h"
|
||||
|
||||
#define MAX_REFS (INT_MAX >> 1)
|
||||
#define MAX_REFS SSIZE_MAX
|
||||
|
||||
static char *__zipos_mapend;
|
||||
static size_t __zipos_maptotal;
|
||||
|
|
|
@ -21,7 +21,7 @@ struct ZiposHandle {
|
|||
size_t size;
|
||||
size_t mapsize;
|
||||
size_t cfile;
|
||||
_Atomic(int) refs;
|
||||
_Atomic(size_t) refs;
|
||||
_Atomic(size_t) pos;
|
||||
uint8_t *mem;
|
||||
uint8_t data[];
|
||||
|
|
Loading…
Add table
Reference in a new issue