Skip to content

Commit

Permalink
make flag compatible with zmat v0.9.8 convention
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Sep 21, 2022
1 parent 6f1e437 commit afe5654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zmatlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ int zmat_run(const size_t inputsize, unsigned char* inputstr, size_t* outputsize
return -1;
}

nthread = (flags.param.nthread == 0) ? 1 : flags.param.nthread;
shuffle = (flags.param.shuffle == 0) ? 1 : flags.param.shuffle;
typesize = (flags.param.typesize == 0) ? 4 : flags.param.typesize;
nthread = (flags.param.nthread == 0 || flags.param.nthread == -1) ? 1 : flags.param.nthread;
shuffle = (flags.param.shuffle == 0 || flags.param.shuffle == -1) ? 1 : flags.param.shuffle;
typesize = (flags.param.typesize == 0 || flags.param.typesize == -1) ? 4 : flags.param.typesize;
clevel = (flags.param.clevel == 0) ? 0 : flags.param.clevel;

if (clevel) {
Expand Down

0 comments on commit afe5654

Please sign in to comment.