Skip to content

Commit d389d18

Browse files
committed
fixed compiler warnings
1 parent f77b564 commit d389d18

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: digest.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ int main(int argc, char** argv)
4242
Keccak digestKeccak(Keccak::Keccak256);
4343
SHA3 digestSha3 (SHA3 ::Bits256);
4444

45-
// each cycle processes about 1 MByte (divisible by 144 => improves Keccak/SHA3 performance)
46-
const size_t BufferSize = 144*7*1024;
47-
char* buffer = new char[BufferSize];
48-
4945
// select input source: either file or standard-in
5046
std::ifstream file;
5147
std::istream* input = NULL;
@@ -67,6 +63,10 @@ int main(int argc, char** argv)
6763
input = &file;
6864
}
6965

66+
// each cycle processes about 1 MByte (divisible by 144 => improves Keccak/SHA3 performance)
67+
const size_t BufferSize = 144*7*1024;
68+
char* buffer = new char[BufferSize];
69+
7070
// process file
7171
while (*input)
7272
{

Diff for: tests/tests.cpp

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ std::vector<unsigned char> hex2bin(const std::string& hex)
216216

217217

218218
// here we go !
219-
int main(int argc, char** argv)
219+
int main()
220220
{
221221
int errors = 0;
222222

0 commit comments

Comments
 (0)