Skip to content
Snippets Groups Projects
Commit d4bb8786 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'clang10.TestTools-20200630' into 'master'

TestTools: Fix clang 10 warning.

See merge request atlas/athena!34316
parents a842f66d 4685228f
No related branches found
No related tags found
No related merge requests found
// This file's extension implies that it's C, but it's really -*- C++ -*-. // This file's extension implies that it's C, but it's really -*- C++ -*-.
/* /*
* Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration. * Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration.
*/ */
/** /**
* @file TestTools/random.h * @file TestTools/random.h
...@@ -52,7 +52,7 @@ uint32_t rng_seed (uint32_t& seed) ...@@ -52,7 +52,7 @@ uint32_t rng_seed (uint32_t& seed)
inline inline
float randf_seed (uint32_t& seed, float rmax, float rmin = 0) float randf_seed (uint32_t& seed, float rmax, float rmin = 0)
{ {
return static_cast<float>(rng_seed(seed)) / rngmax * (rmax-rmin) + rmin; return static_cast<float>(rng_seed(seed)) / static_cast<float>(rngmax) * (rmax-rmin) + rmin;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment