Eliminado un warning

This commit is contained in:
2023-04-22 15:16:21 +02:00
parent cb3a8b0110
commit 0bd16bae29
2 changed files with 2 additions and 3 deletions
Executable
BIN
View File
Binary file not shown.
+2 -3
View File
@@ -74,8 +74,6 @@ void printBuffer()
int calcChecksum() int calcChecksum()
{ {
saveFile(filePath + ".bak");
int sum = 0; int sum = 0;
for (int i = firstByte; i <= lastByte; i++) for (int i = firstByte; i <= lastByte; i++)
{ {
@@ -92,7 +90,8 @@ int main(int argc, char *argv[])
{ {
checkParameters(argc, argv); checkParameters(argc, argv);
loadFile(filePath); loadFile(filePath);
int sum = calcChecksum(); saveFile(filePath + ".bak");
calcChecksum();
saveFile(filePath); saveFile(filePath);
//cout << hex; //cout << hex;