Re: [PyMOL] drand48 in ply_c.h

2017-10-24 Thread mathog
On 23-Oct-2017 23:19, Thomas Holder wrote: drand48() returns a float in [0,1) whereas rand() returns an integer in [0,MAX_RAND]. The usual trick (this comes up frequently on mingw) is to replace drand48 with (rand() / (RAND_MAX + 1.0)) Regards, David Mathog mat...@caltech.edu Manager, Seq

[PyMOL] missing cast in layer1/P.cpp?

2017-10-24 Thread mathog
Not sure why the compilers don't complain on Linux, but the mingw compiler demands this cast or it throws an error: --- layer1/P.cpp.orig 2017-10-24 16:34:00 -0700 +++ layer1/P.cpp2017-10-24 16:34:47 -0700 @@ -1782,7 +1782,7 @@ si.wShowWindow = SW_HIDE; if(IsSec