summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaneef Mubarak <haneef503@gmail.com>2020-05-26 16:16:19 -0700
committerHaneef Mubarak <haneef503@gmail.com>2020-05-26 16:16:19 -0700
commit4c45793ec141378f916faef0052356034bc7d678 (patch)
treeee07dcfa63aebe6ee2fe5746ce24032540aa5920
parent6c92690914094ca6e784ff8d0cd8ee1cfc87d5ed (diff)
fix __movsb typecast error MSVC
-rw-r--r--include/mimalloc-internal.h5
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