diff options
| author | sin | 2015-03-11 09:21:25 +0000 |
|---|---|---|
| committer | sin | 2015-03-11 09:21:25 +0000 |
| commit | 1fbf7a3a5e9c02cf992848002cfb88c3c7cc0212 (patch) | |
| tree | e628769a27823769b894dbdfa34e5ae8aac1f374 /include/string.h | |
| parent | 499ea65dd55279319419ff288790e17de629c9a7 (diff) | |
Add explicit casts to satisfy C++ code
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 6771b1d..9f7d462 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -10,8 +10,8 @@ void * | |||
| 10 | __fortify_memcpy(void *dest, const void *src, size_t n) | 10 | __fortify_memcpy(void *dest, const void *src, size_t n) |
| 11 | { | 11 | { |
| 12 | size_t bos = __builtin_object_size(dest, 0); | 12 | size_t bos = __builtin_object_size(dest, 0); |
| 13 | char *d = dest; | 13 | char *d = (char *)dest; |
| 14 | const char *s = src; | 14 | const char *s = (const char *)src; |
| 15 | 15 | ||
| 16 | /* trap if pointers are overlapping but not if dest == src. | 16 | /* trap if pointers are overlapping but not if dest == src. |
| 17 | * gcc seems to like to generate code that relies on dest == src */ | 17 | * gcc seems to like to generate code that relies on dest == src */ |
