vector icon indicating copy to clipboard operation
vector copied to clipboard

MSVC and pointer arithmetic

Open nxrighthere opened this issue 6 years ago • 2 comments

Hey Peter. Thank you for this implementation! So far I encountered only one problem, not a big deal actually, but MSVC is not happy with pointer arithmetic and throws some errors during compilation:

vector.c(375): error C2036: void * vector.c(380): error C2036: void * vector.c(415): error C2036: void * vector.c(435): error C2036: void * vector.c(439): error C2036: void *const vector.c(473): error C2036: void * vector.c(488): error C2036: void *

I fixed this with an explicit cast and just want to let you know that such a problem occurs.

nxrighthere avatar Dec 29 '18 05:12 nxrighthere

Thanks for reporting this! Do you think you could send a pull request with your fixes? I'd be happy to merge it.

goldsborough avatar Jan 03 '19 16:01 goldsborough

2020 Sep 03 -- this is still a problem ... for CL. If using clang (as packaged with VS 2019) this is not a problem.

DBJDBJ avatar Sep 03 '20 06:09 DBJDBJ