Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: snapshot/win/system_snapshot_win.cc

Issue 1408123006: Tidy up to enable C4800 on Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « snapshot/cpu_context.cc ('k') | util/file/file_io_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/system_snapshot_win.cc
diff --git a/snapshot/win/system_snapshot_win.cc b/snapshot/win/system_snapshot_win.cc
index a7523f48449d90192333071db002fb6d52d00899..88827a5d865d54bb652f7da650b8411ebedcc8f0 100644
--- a/snapshot/win/system_snapshot_win.cc
+++ b/snapshot/win/system_snapshot_win.cc
@@ -274,7 +274,7 @@ bool SystemSnapshotWin::CPUX86SupportsDAZ() const {
uint32_t mxcsr_mask = extended_registers[7];
// Test the DAZ bit.
- return mxcsr_mask & (1 << 6);
+ return (mxcsr_mask & (1 << 6)) != 0;
}
SystemSnapshot::OperatingSystem SystemSnapshotWin::GetOperatingSystem() const {
@@ -311,7 +311,7 @@ std::string SystemSnapshotWin::MachineDescription() const {
bool SystemSnapshotWin::NXEnabled() const {
INITIALIZATION_STATE_DCHECK_VALID(initialized_);
- return IsProcessorFeaturePresent(PF_NX_ENABLED);
+ return !!IsProcessorFeaturePresent(PF_NX_ENABLED);
}
void SystemSnapshotWin::TimeZone(DaylightSavingTimeStatus* dst_status,
« no previous file with comments | « snapshot/cpu_context.cc ('k') | util/file/file_io_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698