mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
fix: warning on latest AppleClang (#2522)
Fixed in #2510 but reintroduced on one line by #2126
This commit is contained in:
parent
d74be32109
commit
3c7ef56bb6
@ -1489,7 +1489,7 @@ PYBIND11_NAMESPACE_BEGIN(detail)
|
||||
|
||||
inline str enum_name(handle arg) {
|
||||
dict entries = arg.get_type().attr("__entries");
|
||||
for (const auto &kv : entries) {
|
||||
for (auto kv : entries) {
|
||||
if (handle(kv.second[int_(0)]).equal(arg))
|
||||
return pybind11::str(kv.first);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user