Skip to content

Commit

Permalink
Fix fenv_t initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
000lbh committed Oct 10, 2024
1 parent 5992e5a commit 115a85f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aarch64/fenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* Hopefully the system ID byte is immutable, so it's valid to use
* this as a default environment.
*/
const fenv_t __fe_dfl_env = 0;
const fenv_t __fe_dfl_env = {0};

extern inline int feclearexcept(int __excepts);
extern inline int fegetexceptflag(fexcept_t *__flagp, int __excepts);
Expand Down
2 changes: 1 addition & 1 deletion arm/fenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* Hopefully the system ID byte is immutable, so it's valid to use
* this as a default environment.
*/
const fenv_t __fe_dfl_env = 0;
const fenv_t __fe_dfl_env = {0};

extern inline int feclearexcept(int __excepts);
extern inline int fegetexceptflag(fexcept_t *__flagp, int __excepts);
Expand Down
2 changes: 1 addition & 1 deletion loongarch64/fenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Hopefully the system ID byte is immutable, so it's valid to use
* this as a default environment.
*/
const fenv_t __fe_dfl_env = 0;
const fenv_t __fe_dfl_env = {0};

extern inline int feclearexcept(int __excepts);
extern inline int fegetexceptflag(fexcept_t *__flagp, int __excepts);
Expand Down
2 changes: 1 addition & 1 deletion mips/fenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* Hopefully the system ID byte is immutable, so it's valid to use
* this as a default environment.
*/
const fenv_t __fe_dfl_env = 0;
const fenv_t __fe_dfl_env = {0};

#ifdef __mips_soft_float
#define __set_env(env, flags, mask, rnd) env = ((flags) \
Expand Down
2 changes: 1 addition & 1 deletion riscv64/fenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* Hopefully the system ID byte is immutable, so it's valid to use
* this as a default environment.
*/
const fenv_t __fe_dfl_env = 0;
const fenv_t __fe_dfl_env = {0};

#ifdef __riscv_float_abi_soft
#define __set_env(env, flags, mask, rnd) env = ((flags) | (rnd) << 5)
Expand Down

0 comments on commit 115a85f

Please sign in to comment.