Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
3c7ef56b
Unverified
Commit
3c7ef56b
authored
Sep 22, 2020
by
Henry Schreiner
Committed by
GitHub
Sep 22, 2020
Browse files
fix: warning on latest AppleClang (#2522)
Fixed in #2510 but reintroduced on one line by #2126
parent
d74be321
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind11/pybind11.h
include/pybind11/pybind11.h
+1
-1
No files found.
include/pybind11/pybind11.h
View file @
3c7ef56b
...
@@ -1489,7 +1489,7 @@ PYBIND11_NAMESPACE_BEGIN(detail)
...
@@ -1489,7 +1489,7 @@ PYBIND11_NAMESPACE_BEGIN(detail)
inline
str
enum_name
(
handle
arg
)
{
inline
str
enum_name
(
handle
arg
)
{
dict
entries
=
arg
.
get_type
().
attr
(
"__entries"
);
dict
entries
=
arg
.
get_type
().
attr
(
"__entries"
);
for
(
const
auto
&
kv
:
entries
)
{
for
(
auto
kv
:
entries
)
{
if
(
handle
(
kv
.
second
[
int_
(
0
)]).
equal
(
arg
))
if
(
handle
(
kv
.
second
[
int_
(
0
)]).
equal
(
arg
))
return
pybind11
::
str
(
kv
.
first
);
return
pybind11
::
str
(
kv
.
first
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment