[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 6ecceb5 4/6: Rename a local variable for clar
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 6ecceb5 4/6: Rename a local variable for clarity |
Date: |
Thu, 5 Jan 2017 21:52:29 +0000 (UTC) |
branch: master
commit 6ecceb58435ccfdc1ba23547c02dd3befc7f4e11
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Rename a local variable for clarity
A verb phrase is a poor variable name. That it's copied from examples
in the C99 standard [7.6.4.4/4; F.9.6.6/2] is no excuse.
---
fenv_lmi.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fenv_lmi.cpp b/fenv_lmi.cpp
index ccabf8e..8e0cb1d 100644
--- a/fenv_lmi.cpp
+++ b/fenv_lmi.cpp
@@ -65,8 +65,8 @@ void fenv_initialize()
#if defined LMI_X87
x87_control_word(default_x87_control_word());
#else // !defined LMI_X87
- std::fenv_t save_env;
- std::feholdexcept(&save_env);
+ std::fenv_t saved_env;
+ std::feholdexcept(&saved_env);
std::fesetround(FE_TONEAREST);
// Standard C++ provides no way to set hardware precision.
// Here is an example of a C99 7.6/9 extension that controls
- [lmi-commits] [lmi] master updated (df07870 -> d1e29f2), Greg Chicares, 2017/01/05
- [lmi-commits] [lmi] master 6b06fd4 2/6: Use standard <cfenv> macros with standard <cfenv> functions, Greg Chicares, 2017/01/05
- [lmi-commits] [lmi] master ba30a9f 5/6: Sequester <cfenv> from code that includes 'fenv_lmi.hpp', Greg Chicares, 2017/01/05
- [lmi-commits] [lmi] master 6ecceb5 4/6: Rename a local variable for clarity,
Greg Chicares <=
- [lmi-commits] [lmi] master 17b62a5 1/6: Update history of C and C++ numerics, Greg Chicares, 2017/01/05
- [lmi-commits] [lmi] master d1e29f2 6/6: Check return values of <cfenv> functions, Greg Chicares, 2017/01/05
- [lmi-commits] [lmi] master e04cad4 3/6: Explicitly qualify standard functions, Greg Chicares, 2017/01/05