diff options
Diffstat (limited to 'include/string.h')
| -rw-r--r-- | include/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h index e6fceb3..e678863 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -25,8 +25,8 @@ extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) | |||
| 25 | void *memcpy(void *dest, const void *src, size_t n) | 25 | void *memcpy(void *dest, const void *src, size_t n) |
| 26 | { | 26 | { |
| 27 | size_t bos = __builtin_object_size(dest, 0); | 27 | size_t bos = __builtin_object_size(dest, 0); |
| 28 | char *d = dest; | 28 | char *d = (char *)dest; |
| 29 | const char *s = src; | 29 | const char *s = (const char *)src; |
| 30 | 30 | ||
| 31 | /* trap if pointers are overlapping but not if dest == src. | 31 | /* trap if pointers are overlapping but not if dest == src. |
| 32 | * gcc seems to like to generate code that relies on dest == src */ | 32 | * gcc seems to like to generate code that relies on dest == src */ |
