Skip to content

Conversation

BorisSchaeling
Copy link
Contributor

The 64-bit version of Cygwin defines PyThread_create_key() with a return type of long (instead of int; some background information can be found on the cygwin-apps mailing list). This pull request makes pybind11 use decltype() to deduce the type to use for pybind11::detail::internals::tstate. I also added the flag -Wconversion to CMakeLists.txt to help detect this kind of problems in the future.

I tested pybind11 with the changes on Cygwin (only 64-bit version), Linux (g++) and Windows (VS2015).

@wjakob wjakob merged commit 20ee935 into pybind:master May 29, 2016
@wjakob
Copy link
Member

wjakob commented May 29, 2016

Hi Boris,

thank you for the Cygwin fixes. There were some conflicts with another (big!) PR: #207, which I tried to resolve. Please let me know if I broke something.

Cheers,
Wenzel

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.

2 participants