summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-30 22:43:55 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-30 22:43:55 +0300
commit765ff5dcb569abdc147d3cb13ef29bdedc842c8f (patch)
tree68f10fa474c7dec5b578525d9f3c299bfd38f398 /include
parentAdd basic support for replies (#292) (diff)
downloadnheko-765ff5dcb569abdc147d3cb13ef29bdedc842c8f.tar.xz
Fix crash on Windows with out_of_range exception & update docs
Diffstat (limited to 'include')
-rw-r--r--include/Cache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/Cache.h b/include/Cache.h

index 5d65c80c..14f991e8 100644 --- a/include/Cache.h +++ b/include/Cache.h
@@ -48,11 +48,11 @@ struct SearchResult QString display_name; }; -inline int +static int numeric_key_comparison(const MDB_val *a, const MDB_val *b) { - auto lhs = std::stoul(std::string((char *)a->mv_data, a->mv_size)); - auto rhs = std::stoul(std::string((char *)b->mv_data, b->mv_size)); + auto lhs = std::stoull(std::string((char *)a->mv_data, a->mv_size)); + auto rhs = std::stoull(std::string((char *)b->mv_data, b->mv_size)); if (lhs < rhs) return 1;