diff options
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/memset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/memset.c b/lib/stdlib/memset.c index ccd46dd..a16bd05 100644 --- a/lib/stdlib/memset.c +++ b/lib/stdlib/memset.c @@ -2,6 +2,6 @@ void * memset(void *s, int c, long unsigned n) { char *pDest = (char *)s; - for (unsigned i = 0; i < n; ++i) pDest[i] = c; + for (unsigned i = 0; i < n; ++i) pDest[i] = (char)c; return s; } |