Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
bce10fae
Commit
bce10fae
authored
Aug 28, 2015
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows fixes
parent
a9ee25a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/pybind/cast.h
+3
-3
No files found.
include/pybind/cast.h
View file @
bce10fae
...
@@ -227,8 +227,8 @@ protected:
...
@@ -227,8 +227,8 @@ protected:
if ((py_value == (py_type) -1 && PyErr_Occurred()) || \
if ((py_value == (py_type) -1 && PyErr_Occurred()) || \
(std::numeric_limits<type>::is_integer && \
(std::numeric_limits<type>::is_integer && \
sizeof(py_type) != sizeof(type) && \
sizeof(py_type) != sizeof(type) && \
(py_value < std::numeric_limits<type>::min() || \
(py_value <
(py_type)
std::numeric_limits<type>::min() || \
py_value > std::numeric_limits<type>::max()))) { \
py_value >
(py_type)
std::numeric_limits<type>::max()))) { \
PyErr_Clear(); \
PyErr_Clear(); \
return false; \
return false; \
} \
} \
...
@@ -255,7 +255,7 @@ PYBIND_TYPE_CASTER_NUMBER(ssize_t, Py_ssize_t, PyLong_AsSsize_t, PyLong_FromSsiz
...
@@ -255,7 +255,7 @@ PYBIND_TYPE_CASTER_NUMBER(ssize_t, Py_ssize_t, PyLong_AsSsize_t, PyLong_FromSsiz
PYBIND_TYPE_CASTER_NUMBER
(
size_t
,
size_t
,
PyLong_AsSize_t
,
PyLong_FromSize_t
)
PYBIND_TYPE_CASTER_NUMBER
(
size_t
,
size_t
,
PyLong_AsSize_t
,
PyLong_FromSize_t
)
#endif
#endif
PYBIND_TYPE_CASTER_NUMBER
(
float
,
float
,
PyFloat_AsDouble
,
PyFloat_FromDouble
)
PYBIND_TYPE_CASTER_NUMBER
(
float
,
double
,
PyFloat_AsDouble
,
PyFloat_FromDouble
)
PYBIND_TYPE_CASTER_NUMBER
(
double
,
double
,
PyFloat_AsDouble
,
PyFloat_FromDouble
)
PYBIND_TYPE_CASTER_NUMBER
(
double
,
double
,
PyFloat_AsDouble
,
PyFloat_FromDouble
)
template
<>
class
type_caster
<
void_type
>
{
template
<>
class
type_caster
<
void_type
>
{
...
...
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