[Libreoffice-commits] .: basic/source
Noel Power
noelp at kemper.freedesktop.org
Mon Feb 14 10:19:17 PST 2011
basic/source/runtime/methods.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9fb0b30063ca1004810834e4c5d7ed0a2233c3f0
Author: Clio <menenem at bk.ru>
Date: Mon Feb 14 13:02:09 2011 -0400
IZ #116920 RND returns one fix
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index ce96f66..039c5d6 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -3446,7 +3446,7 @@ RTLFUNC(Rnd)
else
{
double nRand = (double)rand();
- nRand = ( nRand / (double)RAND_MAX );
+ nRand = ( nRand / ((double)RAND_MAX + 1.0));
rPar.Get(0)->PutDouble( nRand );
}
}
More information about the Libreoffice-commits
mailing list