mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
removed gcc compilation flag -Wbad-function-cast
It makes it more difficult to directly cast the result of a function, requiring to store the result in an intermediate variable. It does not necessarily help readability, and this restriction can be difficult to overcome in some constructions, like some macros. also : fixed minor Visual conversion warnings in datagencli.c
This commit is contained in:
parent
46ac9ade9b
commit
2d4d31c18a
4 changed files with 14 additions and 14 deletions
|
|
@ -95,10 +95,10 @@ int main(int argc, const char** argv)
|
|||
break;
|
||||
case 'P':
|
||||
argument++;
|
||||
probaU32=0.0;
|
||||
probaU32 = 0;
|
||||
while ((*argument>='0') && (*argument<='9'))
|
||||
probaU32 *= 10, probaU32 += *argument++ - '0';
|
||||
if (probaU32>100.) probaU32=100.;
|
||||
if (probaU32>100) probaU32 = 100;
|
||||
break;
|
||||
case 'L': /* hidden argument : Literal distribution probability */
|
||||
argument++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue