Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
85557b1d
Commit
85557b1d
authored
Aug 11, 2016
by
Wenzel Jakob
Committed by
GitHub
Aug 11, 2016
Browse files
Merge pull request #330 from jagerman/silence-msvc-warning
Silence MSVC warning
parents
5a4cd3b4
e20fc61a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/pybind11/cast.h
include/pybind11/cast.h
+3
-3
No files found.
include/pybind11/cast.h
View file @
85557b1d
...
@@ -199,10 +199,10 @@ public:
...
@@ -199,10 +199,10 @@ public:
auto
tinfo
=
(
const
detail
::
type_info
*
)
it
->
second
;
auto
tinfo
=
(
const
detail
::
type_info
*
)
it
->
second
;
auto
it_instances
=
internals
.
registered_instances
.
equal_range
(
src
);
auto
it_instances
=
internals
.
registered_instances
.
equal_range
(
src
);
for
(
auto
it
=
it_instances
.
first
;
it
!=
it_instances
.
second
;
++
it
)
{
for
(
auto
it
_i
=
it_instances
.
first
;
it
_i
!=
it_instances
.
second
;
++
it
_i
)
{
auto
instance_type
=
detail
::
get_type_info
(
Py_TYPE
(
it
->
second
),
false
);
auto
instance_type
=
detail
::
get_type_info
(
Py_TYPE
(
it
_i
->
second
),
false
);
if
(
instance_type
&&
instance_type
==
tinfo
)
if
(
instance_type
&&
instance_type
==
tinfo
)
return
handle
((
PyObject
*
)
it
->
second
).
inc_ref
();
return
handle
((
PyObject
*
)
it
_i
->
second
).
inc_ref
();
}
}
object
inst
(
PyType_GenericAlloc
(
tinfo
->
type
,
0
),
false
);
object
inst
(
PyType_GenericAlloc
(
tinfo
->
type
,
0
),
false
);
...
...
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