Skip to content


Silence mrbmemcpy and mrbmemset warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Jun 23, 2017
1 parent b200c74 commit 9a59cd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/mruby.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 9a59cd7

Please sign in to comment.