diff options
author | Sverker Eriksson <[email protected]> | 2018-03-20 16:48:26 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-03-20 16:48:26 +0100 |
commit | 1ac8caa8d22f3767e84e7be749afbd5ed17a11b4 (patch) | |
tree | 63e0e6653e2dc0872a9c5a9a1b35246c80a4d8d9 /erts/emulator/beam/sys.h | |
parent | 2bdd0ba8f6046301778ea3673716d8df9fdd42fa (diff) | |
download | otp-1ac8caa8d22f3767e84e7be749afbd5ed17a11b4.tar.gz otp-1ac8caa8d22f3767e84e7be749afbd5ed17a11b4.tar.bz2 otp-1ac8caa8d22f3767e84e7be749afbd5ed17a11b4.zip |
erts: Fix some zero size sys_memcpy
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r-- | erts/emulator/beam/sys.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h index 152da8c9e1..c21acadd8d 100644 --- a/erts/emulator/beam/sys.h +++ b/erts/emulator/beam/sys.h @@ -1004,9 +1004,7 @@ erts_refc_read(erts_refc_t *refcp, erts_aint_t min_val) * may seemingly work when the length (if any) is zero; a compiler can take * this as a hint that the passed operand may *never* be NULL and then optimize * based on that information. - * - * (The weird casts in the assertions silence an "always evaluates to true" - * warning when an operand is the address of an lvalue) */ + */ ERTS_GLB_INLINE void *sys_memcpy(void *dest, const void *src, size_t n); ERTS_GLB_INLINE void *sys_memmove(void *dest, const void *src, size_t n); ERTS_GLB_INLINE int sys_memcmp(const void *s1, const void *s2, size_t n); |