MS Win 64bit issue #8

kmx opened this Issue May 10, 2010 · 0 comments

1 participant



I have experienced the following error when compiling tidyp 1.02 on MS Win 64bit machine:

src\tidyplib.c: In function 'tidyOptGetDefault':
src\tidyplib.c:349: warning: cast to pointer from integer of different size

further investigation revealed problem with casting ulong to pointer like this:

return (ctmbstr) option->dflt;

The trouble is that on 64bit MS Windows LLP64 model is used which means that:

sizeof(long) == 4
sizeof(void*) == 8


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment