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

Issue 2851015: Fixes to compiler warnings in MSVC (Closed)

Created:
10 years, 6 months ago by Randall Spangler
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://gitrw.chromium.org/vboot_reference.git
Visibility:
Public.

Description

Fixes to compiler warnings in MSVC

Patch Set 1 #

Patch Set 2 : Also fix gpt numbering bug #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -61 lines) Patch
M firmware/include/sysincludes.h View 1 chunk +4 lines, -0 lines 0 comments Download
M firmware/lib/cgptlib/cgptlib.c View 1 5 chunks +15 lines, -3 lines 0 comments Download
M firmware/lib/cgptlib/cgptlib_internal.c View 1 chunk +1 line, -1 line 0 comments Download
M firmware/lib/cryptolib/include/rsa.h View 1 chunk +1 line, -1 line 0 comments Download
M firmware/lib/cryptolib/rsa.c View 7 chunks +15 lines, -15 lines 3 comments Download
M firmware/lib/cryptolib/rsa_utility.c View 2 chunks +4 lines, -2 lines 0 comments Download
M firmware/lib/cryptolib/sha1.c View 3 chunks +7 lines, -7 lines 0 comments Download
M firmware/lib/cryptolib/sha2.c View 3 chunks +14 lines, -14 lines 0 comments Download
M firmware/lib/include/stateful_util.h View 1 chunk +1 line, -1 line 0 comments Download
M firmware/lib/rollback_index.c View 1 chunk +4 lines, -4 lines 0 comments Download
M firmware/lib/vboot_common.c View 2 chunks +5 lines, -4 lines 1 comment Download
M firmware/lib/vboot_firmware.c View 3 chunks +5 lines, -3 lines 0 comments Download
M firmware/lib/vboot_kernel.c View 1 6 chunks +15 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Randall Spangler
10 years, 6 months ago (2010-06-21 23:13:30 UTC) #1
Bill Richardson
LGTM
10 years, 6 months ago (2010-06-21 23:32:11 UTC) #2
gauravsh
LGTM with comment We should be consistent about the data type for 'algorithm' - and ...
10 years, 6 months ago (2010-06-21 23:32:48 UTC) #3
Randall Spangler
On 2010/06/21 23:32:48, gauravsh wrote: > LGTM with comment > > We should be consistent ...
10 years, 6 months ago (2010-06-21 23:57:52 UTC) #4
Randall Spangler
http://codereview.chromium.org/2851015/diff/2001/3005 File firmware/lib/cryptolib/rsa.c (right): http://codereview.chromium.org/2851015/diff/2001/3005#newcode88 firmware/lib/cryptolib/rsa.c:88: for (i = 0; i < (int)key->len; ++i) { ...
10 years, 6 months ago (2010-06-21 23:58:05 UTC) #5
gauravsh
10 years, 6 months ago (2010-06-22 00:00:31 UTC) #6
On Mon, Jun 21, 2010 at 4:58 PM,  <rspangler@chromium.org> wrote:
>
> http://codereview.chromium.org/2851015/diff/2001/3005
> File firmware/lib/cryptolib/rsa.c (right):
>
> http://codereview.chromium.org/2851015/diff/2001/3005#newcode88
> firmware/lib/cryptolib/rsa.c:88: for (i = 0; i < (int)key->len; ++i) {
> On 2010/06/21 23:32:48, gauravsh wrote:
>>
>> both i and key->len are uint32_t, so this cast seems unncessary
>
> i is a (signed) int; key->len is a uint32_t.  So MSVC gives a
> signed/unsigned comparison warning.

Yeah, just realized that I was distracted by the bright and green
uint32_t i declared in the function above in the code review. :)
>
> http://codereview.chromium.org/2851015/show
>



-- 
-g

Powered by Google App Engine
This is Rietveld 408576698