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

Unified Diff: firmware/stub/utility_stub.c

Issue 2809037: Make vboot_reference build in MSVC command line environment. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Integrated trunk changes. Created 10 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 | « firmware/stub/tlcl.c ('k') | firmware/version.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/stub/utility_stub.c
diff --git a/firmware/stub/utility_stub.c b/firmware/stub/utility_stub.c
index a41e3a3d3ca08c75ce8bc4c07fcae08263d5794c..1445008ce1ffd5cf0b8188f5ff96d34e6e8bb701 100644
--- a/firmware/stub/utility_stub.c
+++ b/firmware/stub/utility_stub.c
@@ -48,13 +48,14 @@ int Memcmp(const void* src1, const void* src2, size_t n) {
return memcmp(src1, src2, n);
}
-void* Memcpy(void* dest, const void* src, size_t n) {
- return memcpy(dest, src, n);
+void* Memcpy(void* dest, const void* src, uint64_t n) {
+ return memcpy(dest, src, (size_t)n);
}
-void* Memset(void* dest, const uint8_t c, size_t n) {
+void* Memset(void* d, const uint8_t c, uint64_t n) {
+ uint8_t *dest = d; /* the only way to keep both cl and gcc happy */
while (n--) {
- *((uint8_t*)dest++) = c;
+ *dest++ = c;
}
return dest;
}
« no previous file with comments | « firmware/stub/tlcl.c ('k') | firmware/version.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698