From 9ab216023c18aad0df7f4b604bec19f4d31c412e Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 20 Jan 2009 21:40:16 +0000 Subject: fix compiler warnings (trivial) Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3882 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/lib/memcpy.c | 2 +- src/lib/memset.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/memcpy.c b/src/lib/memcpy.c index 16db67766d..1053a531c8 100644 --- a/src/lib/memcpy.c +++ b/src/lib/memcpy.c @@ -5,7 +5,7 @@ void *memcpy(void *vdest, const void *vsrc, size_t bytes) char *dest = vdest; int i; - for (i = 0; i < bytes; i++) + for (i = 0; i < (int)bytes; i++) dest[i] = src[i]; return vdest; diff --git a/src/lib/memset.c b/src/lib/memset.c index c1bb4f841f..bac3305590 100644 --- a/src/lib/memset.c +++ b/src/lib/memset.c @@ -5,7 +5,7 @@ void *memset(void *s, int c, size_t n) int i; char *ss = (char *) s; - for (i = 0; i < n; i++) + for (i = 0; i < (int)n; i++) ss[i] = c; return s; -- cgit v1.2.3