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

Issue 1044423007: MD5: Use C-cast style in MD5Update() function. (Closed)

Created:
5 years, 8 months ago by tfarina
Modified:
5 years, 8 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD5: Use C++ style cast in the API. The entire code base prefers c++ style casting, but there is the only occurrence of C++ cast (a static_cast), the rest of this file is using C-cast style. So we go the other way round and converted everything from C to C++ way of casting. BUG=None TEST=base_unittests --gtest_filter=MD5* R=thestig@chromium.org Committed: https://crrev.com/2c4c844dbbcd98850769ddaf4429eca99c990839 Cr-Commit-Position: refs/heads/master@{#326795}

Patch Set 1 #

Patch Set 2 : C++ cast #

Total comments: 2

Patch Set 3 : temp fixes #

Patch Set 4 : fix indentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -15 lines) Patch
M base/md5.cc View 1 2 3 9 chunks +16 lines, -15 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
tfarina
Very minor, but still consistent.
5 years, 8 months ago (2015-04-23 01:25:05 UTC) #1
Lei Zhang
The entire code base prefers c++ style casting, so we should go the other way.
5 years, 8 months ago (2015-04-23 02:14:44 UTC) #2
tfarina
Done. Please, see if I got everything right. I'm not sure I did. Check it ...
5 years, 8 months ago (2015-04-23 02:36:37 UTC) #3
Lei Zhang
lgtm https://codereview.chromium.org/1044423007/diff/20001/base/md5.cc File base/md5.cc (right): https://codereview.chromium.org/1044423007/diff/20001/base/md5.cc#newcode42 base/md5.cc:42: t = static_cast<uint32_t>(static_cast<unsigned>(buf[3]) << 8 | buf[2]) This ...
5 years, 8 months ago (2015-04-23 03:06:01 UTC) #4
Lei Zhang
Oh, and update the CL description.
5 years, 8 months ago (2015-04-23 03:16:33 UTC) #5
tfarina
CL description updated too. https://codereview.chromium.org/1044423007/diff/20001/base/md5.cc File base/md5.cc (right): https://codereview.chromium.org/1044423007/diff/20001/base/md5.cc#newcode42 base/md5.cc:42: t = static_cast<uint32_t>(static_cast<unsigned>(buf[3]) << 8 ...
5 years, 8 months ago (2015-04-23 13:09:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1044423007/60001
5 years, 8 months ago (2015-04-24 13:55:17 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-24 14:56:39 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 14:57:29 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2c4c844dbbcd98850769ddaf4429eca99c990839
Cr-Commit-Position: refs/heads/master@{#326795}

Powered by Google App Engine
This is Rietveld 408576698