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
c47fc488
Commit
c47fc488
authored
Aug 30, 2015
by
Wenzel Jakob
Browse files
win32 build fix
parent
a7500317
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
include/pybind/pytypes.h
include/pybind/pytypes.h
+2
-0
No files found.
include/pybind/pytypes.h
View file @
c47fc488
...
...
@@ -229,7 +229,9 @@ public:
PYBIND_OBJECT_DEFAULT
(
int_
,
object
,
PyLong_Check
)
int_
(
int
value
)
:
object
(
PyLong_FromLong
((
long
)
value
),
false
)
{
}
int_
(
size_t
value
)
:
object
(
PyLong_FromSize_t
(
value
),
false
)
{
}
#if !defined(WIN32) || defined(_WIN64)
int_
(
ssize_t
value
)
:
object
(
PyLong_FromSsize_t
(
value
),
false
)
{
}
#endif
operator
int
()
const
{
return
(
int
)
PyLong_AsLong
(
m_ptr
);
}
};
...
...
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