Skip to content

Commit

Permalink
address CodeQL notes
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiao1254 committed Feb 23, 2023
1 parent da9d982 commit 636b07d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/float.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ bool accurate(double a, double b, double err) {
else return false;
}

PRG prg;
template<typename Op, typename Op2>
void test_float(double precision, int runs = 1000) {
PRG prg;
for(int i = 0; i < runs; ++i) {
int ia = 0, ib = 0;
prg.random_data(&ia, 4);
Expand Down
2 changes: 1 addition & 1 deletion test/mitccrh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using namespace std;
using namespace emp;

void print_keys(AES_KEY key) {
void print_keys(AES_KEY& key) {
cout << "round keys\n";
for(int i = 0; i < 11; i++) {
cout << key.rd_key[i]<<endl;
Expand Down

0 comments on commit 636b07d

Please sign in to comment.