Skip to content
Snippets Groups Projects
Commit 2aaac2bc authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Typecast to resolve MSVC error C4146:

"unary minus operator applied to unsigned type, result still unsigned"

Even though this same code compiled and worked as expected with GCC.
parent 6be51c0f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4439 passed
......@@ -89,7 +89,7 @@ int pktdump(FILE* fp, const char* fname, FILE* good, FILE* bad)
return(-1);
}
fseek(fp, -(sizeof terminator), SEEK_END);
fseek(fp, -(int)(sizeof terminator), SEEK_END);
if(fread(&terminator, sizeof terminator, 1, fp) != 1) {
fprintf(stderr,"%s !Error %d (%s) reading terminating nulls"
,fname, errno, strerror(errno));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment