mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 15:09:31 +03:00
fix __movsb typecast error MSVC
This commit is contained in:
parent
6c92690914
commit
4c45793ec1
1 changed files with 4 additions and 1 deletions
|
@ -183,7 +183,10 @@ bool _mi_page_is_valid(mi_page_t* page);
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#define _mi_memcpy _mi_memcpy_rep_movsb
|
#define _mi_memcpy _mi_memcpy_rep_movsb
|
||||||
static inline void _mi_memcpy_rep_movsb (void *d, const void *s, size_t n) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Reference in a new issue