diff options
author | Haneef Mubarak <haneef503@gmail.com> | 2020-05-26 16:16:19 -0700 |
---|---|---|
committer | Haneef Mubarak <haneef503@gmail.com> | 2020-05-26 16:16:19 -0700 |
commit | 4c45793ec141378f916faef0052356034bc7d678 (patch) | |
tree | ee07dcfa63aebe6ee2fe5746ce24032540aa5920 /include/mimalloc-internal.h | |
parent | 6c92690914094ca6e784ff8d0cd8ee1cfc87d5ed (diff) |
fix __movsb typecast error MSVC
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r-- | include/mimalloc-internal.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h index 43f72a1..6cdf0c0 100644 --- a/include/mimalloc-internal.h +++ b/include/mimalloc-internal.h @@ -183,7 +183,10 @@ bool _mi_page_is_valid(mi_page_t* page); #include <intrin.h> #define _mi_memcpy _mi_memcpy_rep_movsb static inline void _mi_memcpy_rep_movsb (void *d, const void *s, size_t n) { - __movsb(d, s, n); + unsigned char* Destination = (unsigned char*) d; + unsigned const char* Source = (unsigned const char*) s; + size_t Count = n; + __movsb(Destination, Source, Count); return; } #else |