diff options
| author | sin | 2015-03-11 12:57:37 +0000 |
|---|---|---|
| committer | sin | 2015-03-11 12:57:37 +0000 |
| commit | 69e43f5c5ee1c95f2d9701380b30d31589a77350 (patch) | |
| tree | 8839cab06a6e32721de3cc994b9a0927c0a2449f /include | |
| parent | 14af218559243c1e16cf871e1823f1a5d8cece9f (diff) | |
Revert "Add explicit casts to satisfy C++ code"
This reverts commit 1fbf7a3a5e9c02cf992848002cfb88c3c7cc0212.
Diffstat (limited to 'include')
| -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 b0979cc..c5f4710 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -12,8 +12,8 @@ void * | |||
| 12 | __fortify_memcpy(void *dest, const void *src, size_t n) | 12 | __fortify_memcpy(void *dest, const void *src, size_t n) |
| 13 | { | 13 | { |
| 14 | size_t bos = __builtin_object_size(dest, 0); | 14 | size_t bos = __builtin_object_size(dest, 0); |
| 15 | char *d = (char *)dest; | 15 | char *d = dest; |
| 16 | const char *s = (const char *)src; | 16 | const char *s = src; |
| 17 | 17 | ||
| 18 | /* trap if pointers are overlapping but not if dest == src. | 18 | /* trap if pointers are overlapping but not if dest == src. |
| 19 | * gcc seems to like to generate code that relies on dest == src */ | 19 | * gcc seems to like to generate code that relies on dest == src */ |
