Skip to content

Commit

Permalink
int -> unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Feb 20, 2020
1 parent 28f480e commit eb98bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/evaluate/host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void HostFloatingPointEnvironment::SetUpHostFloatingPointEnvironment(
#if __x86_64__
hasSubnormalFlushingHardwareControl_ = true;
#ifdef _MSC_VER
int new_mxcsr{_mm_getcsr()};
unsigned int new_mxcsr{_mm_getcsr()};
if (context.flushSubnormalsToZero()) {
new_mxcsr |= 0x8000;
new_mxcsr |= 0x0040;
Expand Down
2 changes: 1 addition & 1 deletion test/evaluate/fp-testing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ScopedHostFloatingPointEnvironment::ScopedHostFloatingPointEnvironment(
}
#if __x86_64__
#ifdef _MSC_VER
int new_mxcsr{_mm_getcsr()};
unsigned int new_mxcsr{_mm_getcsr()};
if (treatSubnormalOperandsAsZero) {
new_mxcsr |= 0x0040;
} else {
Expand Down

0 comments on commit eb98bce

Please sign in to comment.