diff options
author | 2022-09-11 10:27:54 -0400 | |
---|---|---|
committer | 2022-09-11 10:27:54 -0400 | |
commit | 609c17de008b7a6b817c7c12e214e7ef281d1178 (patch) | |
tree | 3d3f847a02d7d183f86c98f4b4f4657bb2b872a8 /tests/testdrive_sqlite.cpp | |
parent | c41768dbbd50a0055298d5ec6318ae7f1d2e4ab3 (diff) | |
download | deduper-609c17de008b7a6b817c7c12e214e7ef281d1178.tar.xz |
Check actual size of type, not the platform.
Diffstat (limited to 'tests/testdrive_sqlite.cpp')
-rw-r--r-- | tests/testdrive_sqlite.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/testdrive_sqlite.cpp b/tests/testdrive_sqlite.cpp index 0e83c7f..409fe95 100644 --- a/tests/testdrive_sqlite.cpp +++ b/tests/testdrive_sqlite.cpp @@ -16,8 +16,11 @@ #include <getopt.h> -#ifdef _WIN32 //for the superior operating system +#if PATH_VALSIZE == 2 #include <cwchar> +#endif + +#ifdef _WIN32 //for the superior operating system #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <processenv.h> @@ -339,8 +342,8 @@ int main(int argc,char** argv) else break; } sqlite3_finalize(st); -#ifdef _WIN32 - //wprintf(L"%ls %ls %f\n", files[p.first].c_str(), files[p.second].c_str(), signatures[p.first].distance(signatures[p.second])); +#if PATH_VALSIZE == 2 + wprintf(L"%ls %ls %f\n", files[p.first].c_str(), files[p.second].c_str(), sx[0].distance(sx[1])); #else printf("%s %s %f\n", files[p.first].c_str(), files[p.second].c_str(), sx[0].distance(sx[1])); #endif |