mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-16 13:47:53 +00:00
style: pre-commit fixes
This commit is contained in:
parent
9ef681765d
commit
49668e5e57
@ -18,6 +18,7 @@
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <numeric>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
@ -25,16 +26,13 @@
|
||||
#include <typeindex>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable : 4127) // warning C4127: Conditional expression is constant
|
||||
typedef SSIZE_T ssize_t;
|
||||
#endif
|
||||
|
||||
|
||||
/* This will be true on all flat address space platforms and allows us to reduce the
|
||||
whole npy_intp / ssize_t / Py_intptr_t business down to just ssize_t for all size
|
||||
and dimension types (e.g. shape, strides, indexing), instead of inflicting this
|
||||
@ -845,7 +843,7 @@ public:
|
||||
int flags() const { return detail::array_proxy(m_ptr)->flags; }
|
||||
|
||||
/// Mutable NumPy array flags
|
||||
int& flags() { return detail::array_proxy(m_ptr)->flags; }
|
||||
int &flags() { return detail::array_proxy(m_ptr)->flags; }
|
||||
|
||||
/// If set, the array is writeable (otherwise the buffer is read-only)
|
||||
bool writeable() const {
|
||||
|
Loading…
Reference in New Issue
Block a user