diff options
author | akater <nuclearspace@gmail.com> | 2020-03-03 01:13:39 +0000 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2020-03-03 11:39:05 +0800 |
commit | 7c09f45f501a8ae6573d62e833c4ddfe4ab8b3aa (patch) | |
tree | 243e447f15223e192d01d3f10385182d33299732 /src/filters.h | |
parent | 6e76222373100ef9dd0e2f12cef683a691c5c8ff (diff) | |
download | fork-ledger-7c09f45f501a8ae6573d62e833c4ddfe4ab8b3aa.tar.gz fork-ledger-7c09f45f501a8ae6573d62e833c4ddfe4ab8b3aa.tar.bz2 fork-ledger-7c09f45f501a8ae6573d62e833c4ddfe4ab8b3aa.zip |
Specify namespace of uintmax_t
This fixes #1833 for me. @jwiegley said it's reasonable change, and
nobody else took action so here it goes.
The patch is the same as proposed originally, modulo whitespace.
Diffstat (limited to 'src/filters.h')
-rw-r--r-- | src/filters.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filters.h b/src/filters.h index cf053a24..5c517c95 100644 --- a/src/filters.h +++ b/src/filters.h @@ -371,7 +371,7 @@ class anonymize_posts : public item_handler<post_t> public: anonymize_posts(post_handler_ptr handler) : item_handler<post_t>(handler), next_comm_id(0), last_xact(NULL), - rnd_gen(static_cast<unsigned int>(static_cast<uintmax_t>(std::time(0)))), + rnd_gen(static_cast<unsigned int>(static_cast<boost::uintmax_t>(std::time(0)))), integer_range(1, 2000000000L), integer_gen(rnd_gen, integer_range) { TRACE_CTOR(anonymize_posts, "post_handler_ptr"); |