Skip to content

Commit 2f66258

Browse files
committed
CLN: Remove some build warnings
Swtich to float const Avoid redef inline Defined build constant
1 parent d5ad058 commit 2f66258

File tree

3 files changed

+308
-307
lines changed

3 files changed

+308
-307
lines changed

randomstate/distributions.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,8 +1611,7 @@ static float standard_exponential_zig_float_unlikely(aug_state* state, uint8_t i
16111611
{
16121612
if (idx == 0)
16131613
{
1614-
// TODO: Replace with float ?
1615-
return ziggurat_exp_r - logf(random_float(state));
1614+
return ziggurat_exp_r_f - logf(random_float(state));
16161615
}
16171616
else if ((fe_float[idx - 1] - fe_float[idx]) * random_float(state) + fe_float[idx] < expf(-x))
16181617
{

0 commit comments

Comments
 (0)