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

Issue 807653002: win: static_cast to uint64_t rather than implicit_cast, to avoid warnings (Closed)

Created:
6 years ago by scottmg
Modified:
6 years ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@in_range_cast
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

win: static_cast to uint64_t rather than implicit_cast, to avoid warnings e.g. FAILED: ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\util\misc\util_test.clock_test.obj.rsp /c ..\..\util\misc\clock_test.cc /Foobj\util\misc\util_test.clock_test.obj /Fdobj\util\util_test.cc.pdb d:\src\crashpad\crashpad\third_party\mini_chromium\mini_chromium\base\basictypes.h(49) : error C2220: warning treated as error - no 'object' file generated d:\src\crashpad\crashpad\util\misc\clock_test.cc(72) : see reference to function template instantiation 'To implicit_cast<uint64_t,double>(const From &)' being compiled with [ To=uint64_t , From=double ] d:\src\crashpad\crashpad\third_party\mini_chromium\mini_chromium\base\basictypes.h(49) : warning C4244: 'return' : conversion from 'const double' to 'uint64_t', possible loss of data R=mark@chromium.org BUG=crashpad:1 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/9d38069f130593e5f8f22d16b268ba2374c8276d

Patch Set 1 #

Total comments: 2

Patch Set 2 : use static_cast instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M util/misc/clock_test.cc View 1 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
scottmg
6 years ago (2014-12-15 22:42:32 UTC) #1
Mark Mentovai
LGTM with this change https://codereview.chromium.org/807653002/diff/1/util/misc/clock_test.cc File util/misc/clock_test.cc (right): https://codereview.chromium.org/807653002/diff/1/util/misc/clock_test.cc#newcode72 util/misc/clock_test.cc:72: uint64_t(1E3), // 1 microsecond I ...
6 years ago (2014-12-15 23:41:33 UTC) #2
scottmg
https://codereview.chromium.org/807653002/diff/1/util/misc/clock_test.cc File util/misc/clock_test.cc (right): https://codereview.chromium.org/807653002/diff/1/util/misc/clock_test.cc#newcode72 util/misc/clock_test.cc:72: uint64_t(1E3), // 1 microsecond On 2014/12/15 23:41:33, Mark Mentovai ...
6 years ago (2014-12-15 23:45:48 UTC) #3
Mark Mentovai
LGTM
6 years ago (2014-12-15 23:46:16 UTC) #4
scottmg
6 years ago (2014-12-16 00:21:17 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
9d38069f130593e5f8f22d16b268ba2374c8276d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698