diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-05-11 10:46:59 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2018-05-11 10:46:59 +0000 |
commit | 0cd7118098ced103d3121713bf373099c4174ca6 (patch) | |
tree | 84ef7ac653cf58e65ca7df22d4c1e3c43537117d /vespalib | |
parent | 82d4f4c983f3588220149a076ebea3eb7d6b50a9 (diff) |
Correct function cast
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/stllike/uniq_by_sort_map_hash.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vespalib/src/tests/stllike/uniq_by_sort_map_hash.cpp b/vespalib/src/tests/stllike/uniq_by_sort_map_hash.cpp index f073a013ba3..a070bcd15cf 100644 --- a/vespalib/src/tests/stllike/uniq_by_sort_map_hash.cpp +++ b/vespalib/src/tests/stllike/uniq_by_sort_map_hash.cpp @@ -236,7 +236,8 @@ size_t benchSort(const std::vector<Slot *> & vOrg) static char _type; -int runBenchMark(const std::vector<Slot *> * indirectSlotVector) +void* +runBenchMark(const std::vector<Slot *> * indirectSlotVector) { int uniq(0); switch (_type) { @@ -251,7 +252,7 @@ int runBenchMark(const std::vector<Slot *> * indirectSlotVector) case 'J': uniq = benchHashVespaLibIntelligentAndFast(*indirectSlotVector); break; default: break; } - return uniq; + return reinterpret_cast<void *>(uniq); } int main(int argc, char *argv[]) |