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
56a71520
Commit
56a71520
authored
Jan 25, 2021
by
Ralf W. Grosse-Kunstleve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
32-bit compatibility.
parent
eac5b49f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/pybind11/detail/smart_holder_type_casters.h
+2
-2
No files found.
include/pybind11/detail/smart_holder_type_casters.h
View file @
56a71520
...
@@ -122,7 +122,7 @@ public:
...
@@ -122,7 +122,7 @@ public:
auto
foreign_loader
=
std
::
unique_ptr
<
modified_type_caster_generic_load_impl
>
(
auto
foreign_loader
=
std
::
unique_ptr
<
modified_type_caster_generic_load_impl
>
(
static_cast
<
modified_type_caster_generic_load_impl
*>
(
foreign_loader_void_ptr
));
static_cast
<
modified_type_caster_generic_load_impl
*>
(
foreign_loader_void_ptr
));
// Magic number intentionally hard-coded for simplicity and maximum robustness.
// Magic number intentionally hard-coded for simplicity and maximum robustness.
if
(
foreign_loader
->
local_load_safety_guard
!=
37726257
887406645
)
{
if
(
foreign_loader
->
local_load_safety_guard
!=
1
887406645
)
{
pybind11_fail
(
pybind11_fail
(
"smart_holder_type_casters: Unexpected local_load_safety_guard,"
"smart_holder_type_casters: Unexpected local_load_safety_guard,"
" possibly due to py::class_ holder mixup."
);
" possibly due to py::class_ holder mixup."
);
...
@@ -234,7 +234,7 @@ public:
...
@@ -234,7 +234,7 @@ public:
bool
reinterpret_cast_deemed_ok
=
false
;
bool
reinterpret_cast_deemed_ok
=
false
;
// Magic number intentionally hard-coded, to guard against class_ holder mixups.
// Magic number intentionally hard-coded, to guard against class_ holder mixups.
// Ideally type_caster_generic would have a similar guard, but this requires a change there.
// Ideally type_caster_generic would have a similar guard, but this requires a change there.
std
::
size_t
local_load_safety_guard
=
37726257887406645
;
std
::
size_t
local_load_safety_guard
=
1887406645
;
// 32-bit compatible value for portability.
};
};
// clang-format on
// clang-format on
...
...
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