From 0e327a88a4640b291ee096fb31396ed4d203f636 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Wed, 28 Jun 2006 22:52:03 +0000 Subject: Port to Solaris 10 + fix for numerous warnings on Sun --- cpp/src/IceUtil/Random.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/IceUtil/Random.cpp') diff --git a/cpp/src/IceUtil/Random.cpp b/cpp/src/IceUtil/Random.cpp index f2927d35f64..3daec473553 100644 --- a/cpp/src/IceUtil/Random.cpp +++ b/cpp/src/IceUtil/Random.cpp @@ -208,7 +208,7 @@ int IceUtil::random(int limit) { int r; - generateRandom(reinterpret_cast(&r), sizeof(int)); + generateRandom(reinterpret_cast(&r), static_cast(sizeof(int))); if(limit > 0) { r = r % limit; -- cgit v1.2.3