We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In src/duma.c line 2254:
void *_duma_memmove(void *dest, const void *src, size_t size) { char *d = (char *)dest; const char *s = (const char *)src; if (d < s) { --> const char *end = src + size;
In MSVC, it will raise an error:
error C2036: “const void *”: unknown size
Because the compiler needs to know the size of the data it points to do the pointer arithmetic.
Note:
int* p = 0x0; // Just for example p += 1; // p is 0x4 now char* cp = 0x0; cp += 1; // cp is 0x1 now
So, change this line to:
const char *end = (const char*) src + size;
The text was updated successfully, but these errors were encountered:
Thanks, I'll try to get this in this weekend and investigate your other issue.
Sorry, something went wrong.
johnsonjh
No branches or pull requests
In src/duma.c line 2254:
In MSVC, it will raise an error:
Because the compiler needs to know the size of the data it points to do the pointer arithmetic.
Note:
So, change this line to:
The text was updated successfully, but these errors were encountered: