[lbtt]
Fix generation of random formulae on 64bits systems. * src/main.cc (testLoop): Generate random short ints between 0 and SHRT_MAX, not between 0 and LONG_MAX. On systems where long ints are 64bits, LRAND(0,LONG_MAX) was returning a value with the lower 32 bits set to 0, and the latter truncation to short int always yielded the value 0. Consequently all generated formulae were identical...
This commit is contained in:
parent
c95eb21ecf
commit
3cbd681c6d
2 changed files with 20 additions and 9 deletions
|
|
@ -1,3 +1,14 @@
|
|||
2009-11-26 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||
|
||||
Fix generation of random formulae on 64bits systems.
|
||||
|
||||
* src/main.cc (testLoop): Generate random short ints between 0 and
|
||||
SHRT_MAX, not between 0 and LONG_MAX. On systems where long ints
|
||||
are 64bits, LRAND(0,LONG_MAX) was returning a value with the lower
|
||||
32 bits set to 0, and the latter truncation to short int always
|
||||
yielded the value 0. Consequently all generated formulae were
|
||||
identical...
|
||||
|
||||
2009-11-25 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||
|
||||
* src/Configuration.cc (registerAlgorithm): Do not complain about
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue