diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-06 15:26:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-06 15:28:27 +0100 |
commit | de78b2ca3c24a822ad9b8456323b9d2210ae0487 (patch) | |
tree | cd7fb407375c38049dfd65be703d05ac55b396ce /comphelper | |
parent | 2c6d17b02529f0bc8bfcb1fc16f9e1481ea71829 (diff) |
when size_t == unsigned int
Change-Id: If8cd3632d69f6456b0e1351efac0e428e0093e3b
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/random.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/comphelper/source/misc/random.cxx b/comphelper/source/misc/random.cxx index 4fb4a1fde08d..c695ed12a2f7 100644 --- a/comphelper/source/misc/random.cxx +++ b/comphelper/source/misc/random.cxx @@ -66,6 +66,8 @@ unsigned int uniform_int_distribution(unsigned int a, unsigned int b) return dist(theRandomNumberGenerator::get().global_rng); } +#if SAL_TYPES_SIZEOFLONG == 8 + // uniform size_t [a,b] distribution size_t uniform_int_distribution(size_t a, size_t b) { @@ -73,6 +75,8 @@ size_t uniform_int_distribution(size_t a, size_t b) return dist(theRandomNumberGenerator::get().global_rng); } +#endif + // uniform size_t [a,b) distribution double uniform_real_distribution(double a, double b) { |