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

Unified Diff: src/platform/vboot_reference/tests/cgptlib_test.c

Issue 2550001: fix int reference to unint64 from http://codereview.chromium.org/2438005 (Closed) Base URL: ssh://git@chromiumos-git/chromiumos
Patch Set: Created 10 years, 7 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 | src/platform/vboot_reference/utility/load_kernel_test.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/tests/cgptlib_test.c
diff --git a/src/platform/vboot_reference/tests/cgptlib_test.c b/src/platform/vboot_reference/tests/cgptlib_test.c
index 11b44fb2d89744c59f50795b80e71dbfa89a89ed..80dc264d0c906aa8cf426b89b6d05c92374d6b23 100644
--- a/src/platform/vboot_reference/tests/cgptlib_test.c
+++ b/src/platform/vboot_reference/tests/cgptlib_test.c
@@ -811,39 +811,39 @@ static int EntryAttributeGetSetTest() {
GptData* gpt = GetEmptyGptData();
GptEntry* e = (GptEntry*)(gpt->primary_entries);
- e->attributes = 0x0000000000000000;
+ e->attributes = 0x0000000000000000LLU;
SetEntrySuccessful(e, 1);
- EXPECT(0x0100000000000000 == e->attributes);
+ EXPECT(0x0100000000000000LLU == e->attributes);
EXPECT(1 == GetEntrySuccessful(e));
- e->attributes = 0xFFFFFFFFFFFFFFFF;
+ e->attributes = 0xFFFFFFFFFFFFFFFFLLU;
SetEntrySuccessful(e, 0);
- EXPECT(0xFEFFFFFFFFFFFFFF == e->attributes);
+ EXPECT(0xFEFFFFFFFFFFFFFFLLU == e->attributes);
EXPECT(0 == GetEntrySuccessful(e));
- e->attributes = 0x0000000000000000;
+ e->attributes = 0x0000000000000000LLU;
SetEntryTries(e, 15);
EXPECT(15 == GetEntryTries(e));
- EXPECT(0x00F0000000000000 == e->attributes);
- e->attributes = 0xFFFFFFFFFFFFFFFF;
+ EXPECT(0x00F0000000000000LLU == e->attributes);
+ e->attributes = 0xFFFFFFFFFFFFFFFFLLU;
SetEntryTries(e, 0);
- EXPECT(0xFF0FFFFFFFFFFFFF == e->attributes);
+ EXPECT(0xFF0FFFFFFFFFFFFFLLU == e->attributes);
EXPECT(0 == GetEntryTries(e));
- e->attributes = 0x0000000000000000;
+ e->attributes = 0x0000000000000000LLU;
SetEntryPriority(e, 15);
- EXPECT(0x000F000000000000 == e->attributes);
+ EXPECT(0x000F000000000000LLU == e->attributes);
EXPECT(15 == GetEntryPriority(e));
- e->attributes = 0xFFFFFFFFFFFFFFFF;
+ e->attributes = 0xFFFFFFFFFFFFFFFFLLU;
SetEntryPriority(e, 0);
- EXPECT(0xFFF0FFFFFFFFFFFF == e->attributes);
+ EXPECT(0xFFF0FFFFFFFFFFFFLLU == e->attributes);
EXPECT(0 == GetEntryPriority(e));
- e->attributes = 0xFFFFFFFFFFFFFFFF;
+ e->attributes = 0xFFFFFFFFFFFFFFFFLLU;
EXPECT(1 == GetEntrySuccessful(e));
EXPECT(15 == GetEntryPriority(e));
EXPECT(15 == GetEntryTries(e));
- e->attributes = 0x0123000000000000;
+ e->attributes = 0x0123000000000000LLU;
EXPECT(1 == GetEntrySuccessful(e));
EXPECT(2 == GetEntryTries(e));
EXPECT(3 == GetEntryPriority(e));
« no previous file with comments | « no previous file | src/platform/vboot_reference/utility/load_kernel_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698