Revert "Add explicit casts to satisfy C++ code"
This reverts commit 1fbf7a3a5e9c02cf992848002cfb88c3c7cc0212.
This commit is contained in:
parent
14af218559
commit
69e43f5c5e
@ -12,8 +12,8 @@ void *
|
|||||||
__fortify_memcpy(void *dest, const void *src, size_t n)
|
__fortify_memcpy(void *dest, const void *src, size_t n)
|
||||||
{
|
{
|
||||||
size_t bos = __builtin_object_size(dest, 0);
|
size_t bos = __builtin_object_size(dest, 0);
|
||||||
char *d = (char *)dest;
|
char *d = dest;
|
||||||
const char *s = (const char *)src;
|
const char *s = src;
|
||||||
|
|
||||||
/* trap if pointers are overlapping but not if dest == src.
|
/* trap if pointers are overlapping but not if dest == src.
|
||||||
* gcc seems to like to generate code that relies on dest == src */
|
* gcc seems to like to generate code that relies on dest == src */
|
||||||
|
Loading…
Reference in New Issue
Block a user