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
1b841883
"tests/vscode:/vscode.git/clone" did not exist on "4bae719587b8ed3bcd6b218a87b479e579e54fc2"
Unverified
Commit
1b841883
authored
Feb 07, 2022
by
Aaron Gokaslan
Committed by
GitHub
Feb 07, 2022
Browse files
Minor change to improve readability (#3695)
parent
96b943be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/pybind11/detail/class.h
include/pybind11/detail/class.h
+2
-2
No files found.
include/pybind11/detail/class.h
View file @
1b841883
...
...
@@ -568,8 +568,8 @@ extern "C" inline int pybind11_getbuffer(PyObject *obj, Py_buffer *view, int fla
view
->
format
=
const_cast
<
char
*>
(
info
->
format
.
c_str
());
if
((
flags
&
PyBUF_STRIDES
)
==
PyBUF_STRIDES
)
{
view
->
ndim
=
(
int
)
info
->
ndim
;
view
->
strides
=
&
info
->
strides
[
0
]
;
view
->
shape
=
&
info
->
shape
[
0
]
;
view
->
strides
=
info
->
strides
.
data
()
;
view
->
shape
=
info
->
shape
.
data
()
;
}
Py_INCREF
(
view
->
obj
);
return
0
;
...
...
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