Skip to content
New issue

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

Fix build error C2036 on Windows #122

Merged
merged 1 commit into from
Nov 25, 2022
Merged

Fix build error C2036 on Windows #122

merged 1 commit into from
Nov 25, 2022

Conversation

t20100
Copy link
Contributor

@t20100 t20100 commented May 18, 2022

I get the following error when build on Windows with Microsoft Visual Studio 14.0:
bitshuffle.c(185): error C2036: 'const void *': unknown size
This PR fixes it.

@t20100
Copy link
Contributor Author

t20100 commented Oct 20, 2022

Hi,

Just pinging.

We'd like to update the version of bitshuffle HDF5 filter included in hdf5plugin, but this is blocked by this compilation issue under Windows.

nbytes = ZSTD_decompress(tmp_buf, size * elem_size, in + 4, nbytes_from_header);
nbytes = ZSTD_decompress(tmp_buf, size * elem_size, (void *)((char *) in + 4), nbytes_from_header);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed with similar casting as used in other places, e.g.:

ioc_set_next_out(C_ptr, &this_iter, (void *) ((char *) out + nbytes + 4));

t20100 added a commit to t20100/hdf5plugin that referenced this pull request Nov 8, 2022
Copy link
Collaborator

@jrs65 jrs65 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@jrs65 jrs65 merged commit 881f97a into kiyo-masui:master Nov 25, 2022
@t20100 t20100 deleted the patch-1 branch November 28, 2022 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants