1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

Opaque State

And minor fixups (comments/alignment/checks/fix memory leak)
This commit is contained in:
George Lu
2018-06-22 17:25:16 -07:00
parent ab26f24c9c
commit d6121ad0e1
4 changed files with 182 additions and 166 deletions

View File

@ -710,13 +710,8 @@ int main(int argCount, const char* argv[])
/* Select compressibility of synthetic sample */
case 'P':
{ U32 proba32 = 0;
while ((argument[1]>= '0') && (argument[1]<= '9')) {
proba32 *= 10;
proba32 += argument[1] - '0';
argument++;
}
compressibility = (double)proba32 / 100;
{ argument++;
compressibility = (double)readU32FromChar(&argument) / 100;
}
break;