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

Unified Diff: printing/backend/cups_helper.cc

Issue 345453005: Fixed C++ type conversion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 06/18/2014 10:25:34.94 Created 6 years, 6 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 | « no previous file | printing/backend/cups_helper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/cups_helper.cc
diff --git a/printing/backend/cups_helper.cc b/printing/backend/cups_helper.cc
index b36722d8e79cac976f0fe756bdfd4c4949462508..959e93737cd8ed93f437c43dbae00f7f9231397f 100644
--- a/printing/backend/cups_helper.cc
+++ b/printing/backend/cups_helper.cc
@@ -36,7 +36,7 @@ const char kDuplex[] = "Duplex";
const char kDuplexNone[] = "None";
const char kPageSize[] = "PageSize";
-const double kMicronsPerPoint = kHundrethsMMPerInch / kPointsPerInch * 10;
+const double kMicronsPerPoint = 10.0f * kHundrethsMMPerInch / kPointsPerInch;
#if !defined(OS_MACOSX)
void ParseLpOptions(const base::FilePath& filepath,
« no previous file with comments | « no previous file | printing/backend/cups_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698