mirror of
https://github.com/FEX-Emu/xxHash.git
synced 2024-11-23 06:29:39 +00:00
Fix for C90 limitation
This commit is contained in:
parent
5d8a8133eb
commit
1a4fd0e6c2
2
xxhsum.c
2
xxhsum.c
@ -1054,7 +1054,7 @@ static void XSUM_parseFile1(ParseFileArg* XSUM_parseFileArg, int rev)
|
|||||||
report->nProperlyFormattedLines++;
|
report->nProperlyFormattedLines++;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
int const fnameIsStdin = (strcmp(parsedLine.filename, stdinFileName) == 0); // "stdin"
|
int const fnameIsStdin = (strcmp(parsedLine.filename, stdinFileName) == 0); /* "stdin" */
|
||||||
FILE* const fp = fnameIsStdin ? stdin : XSUM_fopen(parsedLine.filename, "rb");
|
FILE* const fp = fnameIsStdin ? stdin : XSUM_fopen(parsedLine.filename, "rb");
|
||||||
if (fp == stdin) {
|
if (fp == stdin) {
|
||||||
XSUM_setBinaryMode(stdin);
|
XSUM_setBinaryMode(stdin);
|
||||||
|
Loading…
Reference in New Issue
Block a user