Skip to content
Permalink
Browse files
Silence mrbmemcpy and mrbmemset warnings.
  • Loading branch information
matz committed Jun 23, 2017
1 parent b200c74 commit 9a59cd7af852aaf246c7e556c7ca86cd4cea80b5
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1186,8 +1186,8 @@ MRB_API mrb_value mrb_format(mrb_state *mrb, const char *format, ...);
static inline void*
mrbmemcpy(void *dst, const void *src, size_t n)
{
char *d = dst;
const char *s = src;
char *d = (char*)dst;
const char *s = (const char*)src;
while (n--)
*d++ = *s++;
return d;
@@ -1197,7 +1197,7 @@ mrbmemcpy(void *dst, const void *src, size_t n)
static inline void*
mrbmemset(void *s, int c, size_t n)
{
char *t = s;
char *t = (char*)s;
while (n--)
*t++ = c;
return s;

0 comments on commit 9a59cd7

Please sign in to comment.