Skip to content

Commit

Permalink
consider incorrect method provided
Browse files Browse the repository at this point in the history
  • Loading branch information
16BitNarwhal committed Dec 3, 2024
1 parent a63e592 commit 96a608b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pdq/cpp/bin/benchmark-query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ static void query(char* argv0, int argc, char** argv) {
maxDistance, verbose, seed, indexSize, querySize, queries, index);
} else if (method == "mih") {
queryMIH(maxDistance, verbose, seed, indexSize, querySize, queries, index);
} else {
fprintf(stderr, "Unknown method: %s\n", method.c_str());
usage(argv0, 1);
return;
}
}

Expand Down
3 changes: 3 additions & 0 deletions pdq/cpp/io/pdqio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <pdq/cpp/hashing/pdqhashing.h>
#include <pdq/cpp/hashing/torben.h>

#include <iostream>
#include <math.h>
#include <stdlib.h>
#include <chrono>
Expand Down Expand Up @@ -89,7 +90,9 @@ bool pdqHash256FromFile(
}
CImg<uint8_t> input;
try {
std::cout << "loading " << filename << std::endl;
input.load(filename);
std::cout << "finished loading " << filename << std::endl;
} catch (const CImgIOException& ex) {
return false;
}
Expand Down
Binary file removed pdq/data/misc-images/b.jpg
Binary file not shown.

0 comments on commit 96a608b

Please sign in to comment.