Skip to content

Commit

Permalink
fix a compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 28, 2021
1 parent 37bf7f9 commit dff7b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wesnoth.cpp
Expand Up @@ -641,7 +641,6 @@ static void check_fpu()
if(_controlfp_s(&f_control, 0, 0) == 0) {
uint32_t unused;
uint32_t rounding_mode = f_control & _MCW_RC;
uint32_t precision_mode = f_control & _MCW_PC;

if(rounding_mode != _RC_NEAR) {
std::cerr << "Floating point rounding mode is currently '"
Expand All @@ -660,6 +659,7 @@ static void check_fpu()
}

#ifndef _M_AMD64
uint32_t precision_mode = f_control & _MCW_PC;
if(precision_mode != _PC_53) {
std::cerr << "Floating point precision mode is currently '"
<< ((precision_mode == _PC_53)
Expand Down

0 comments on commit dff7b7d

Please sign in to comment.