1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00

removed one more compiler warning in panphasia that was due to undefined behaviour

This commit is contained in:
Oliver Hahn 2021-11-28 13:05:23 +01:00
parent ac2db23325
commit f053b86316

View file

@ -465,7 +465,8 @@ void return_uniform_pseudo_rands_threefry4x64_(size_t l, size_t j1, size_t j2, s
{
replacement_value *= branching_ratio;
counter++;
jind = (++jind) % 8;
// jind = (++jind) % 8;
jind = (jind+1)%8;
new_value = (((double)out_int[jind] + g_shift) * g_scale);
};
replacement_value *= new_value;