diff options
author | TheLastRar <TheLastRar@users.noreply.github.com> | 2022-10-26 01:44:30 +0100 |
---|---|---|
committer | TheLastRar <TheLastRar@users.noreply.github.com> | 2022-11-03 21:35:27 +0000 |
commit | fe347262e9785a4706a92d981275eb08b8f9c103 (patch) | |
tree | c1f44451df17940c99e111a000a4841959737f40 /tests/GZip_test.cpp | |
parent | c993209b763f1d00e2e003d6ea6fa6c5d1afec02 (diff) | |
download | PrismLauncher-fe347262e9785a4706a92d981275eb08b8f9c103.tar.gz PrismLauncher-fe347262e9785a4706a92d981275eb08b8f9c103.tar.bz2 PrismLauncher-fe347262e9785a4706a92d981275eb08b8f9c103.zip |
Fix: Using uint8_t in std::uniform_int_distribution is undefined
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
Diffstat (limited to 'tests/GZip_test.cpp')
-rw-r--r-- | tests/GZip_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/GZip_test.cpp b/tests/GZip_test.cpp index 1e762b2e..82503d81 100644 --- a/tests/GZip_test.cpp +++ b/tests/GZip_test.cpp @@ -24,7 +24,7 @@ slots: QByteArray compressed; QByteArray decompressed; std::default_random_engine eng((std::random_device())()); - std::uniform_int_distribution<uint8_t> idis(0, std::numeric_limits<uint8_t>::max()); + std::uniform_int_distribution<uint16_t> idis(0, std::numeric_limits<uint8_t>::max()); // initialize random buffer for(int i = 0; i < size; i++) |