|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2007-12-20 06:25:38
Author: danieljames
Date: 2007-12-20 06:25:38 EST (Thu, 20 Dec 2007)
New Revision: 42199
URL: http://svn.boost.org/trac/boost/changeset/42199
Log:
Make a cast explicit in order to avoid a warning.
Text files modified:
branches/unordered/dev/libs/unordered/test/helpers/generators.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: branches/unordered/dev/libs/unordered/test/helpers/generators.hpp
==============================================================================
--- branches/unordered/dev/libs/unordered/test/helpers/generators.hpp (original)
+++ branches/unordered/dev/libs/unordered/test/helpers/generators.hpp 2007-12-20 06:25:38 EST (Thu, 20 Dec 2007)
@@ -58,7 +58,7 @@
inline char generate(char const*)
{
using namespace std;
- return (rand() >> 1) % (128-32) + 32;
+ return static_cast<char>((rand() >> 1) % (128-32) + 32);
}
inline signed char generate(signed char const*)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk