You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__testlib_fail("random_t::next(unsigned long n): n must be less LONG_MAX");
return (unsignedlong)next((unsignedlonglong)(n));
}
long is a different type on 32-bit and 64-bit platforms (as well as unsigned long). The problem can occur when using rnd.any(...) since it basically calls next(container.size()).
The text was updated successfully, but these errors were encountered:
Until this is fixed, a workaround is to compile your code for 32bit architecture on both platforms.
For g++ on 64bit systems, this is done using the -m32 flag (you might need to install some libraries though, for me I had to install g++-multilib on linux).
testlib/testlib.h
Lines 673 to 684 in d2880ce
long
is a different type on 32-bit and 64-bit platforms (as well asunsigned long
). The problem can occur when usingrnd.any(...)
since it basically callsnext(container.size())
.The text was updated successfully, but these errors were encountered: