From 66d5236ce7ac129c7190abcb14e1b481e3dbab2b Mon Sep 17 00:00:00 2001 From: Sebastian Grottel Date: Fri, 13 Oct 2017 10:44:52 +0200 Subject: [PATCH] changes `RandomNumberGenerator::result_type` to be unsigned --- include/internal/catch_test_case_registry_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_test_case_registry_impl.hpp b/include/internal/catch_test_case_registry_impl.hpp index 316c6c2c..c32cc9f1 100644 --- a/include/internal/catch_test_case_registry_impl.hpp +++ b/include/internal/catch_test_case_registry_impl.hpp @@ -22,7 +22,7 @@ namespace Catch { struct RandomNumberGenerator { - typedef std::ptrdiff_t result_type; + typedef std::make_unsigned::type result_type; result_type operator()( result_type n ) const { return std::rand() % n; }