8000 BUG: Apply fix for unknown bug in dlamch to slamch too · numpy/numpy@9a77c2a · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a77c2a

Browse files
committed
BUG: Apply fix for unknown bug in dlamch to slamch too
This bug is mentioned, fixed, but not described, in cadbb5f To be safe, we patch it for the equivalent float32 function.
1 parent a674115 commit 9a77c2a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

numpy/linalg/lapack_lite/f2c_config.c

Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ doublereal slamch_(char *cmach)
17821782
doublereal slamc3_(real *a, real *b)
17831783
{
17841784
/* System generated locals */
1785-
real ret_val;
1785+
volatile real ret_val;
17861786

17871787

17881788
/*

numpy/linalg/lapack_lite/f2c_config.c.patch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,13 @@
66
+ volatile doublereal ret_val;
77

88

9+
/*
10+
@@ -1773,7 +1773,7 @@ L10:
11+
doublereal slamc3_(real *a, real *b)
12+
{
13+
/* System generated locals */
14+
- real ret_val;
15+
+ volatile real ret_val;
16+
17+
918
/*

0 commit comments

Comments
 (0)
0