Skip to content

Commit

Permalink
fix zstd default clevel, force make rebuild, update octave mex
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Sep 18, 2022
1 parent 2be1661 commit e5107bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ clean:

.DEFAULT_GOAL := mex

.PHONY: all lib dll mex oct example clean
Binary file modified octave/x86_64-pc-linux-gnu/zipmat.mex
Binary file not shown.
7 changes: 3 additions & 4 deletions src/blosc2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ LIBBLOSC2=$(BLOSC_SRC)/lib/libblosc2.a

all: lib zstd

lib: $(LIBBLOSC2)

$(LIBBLOSC2):
lib:
-$(MAKE) -C $(BLOSC_SRC) lib
zstd:
-$(MAKE) -C $(ZSTD_SRC) libzstd.a
clean:
-$(MAKE) -C $(BLOSC_SRC) clean
-$(MAKE) -C $(ZSTD_SRC) clean

.DEFAULT_GOAL := all
.PHONY: all lib zstd clean

.DEFAULT_GOAL := all
2 changes: 1 addition & 1 deletion src/zmatlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ int zmat_run(const size_t inputsize, unsigned char* inputstr, size_t* outputsize
return -5;
}

*ret = ZSTD_compress((char*)(*outputbuf), *outputsize, (const char*)inputstr, inputsize, (clevel > 0) ? 8 : (-clevel));
*ret = ZSTD_compress((char*)(*outputbuf), *outputsize, (const char*)inputstr, inputsize, (clevel > 0) ? ZSTD_CLEVEL_DEFAULT : (-clevel));

if (ZSTD_isError(*ret)) {
return -9;
Expand Down

0 comments on commit e5107bb

Please sign in to comment.