@@ -418,7 +418,7 @@ namespace py3lm {
418
418
ret->ConstructAt <plg::vector<uint64_t >>();
419
419
break ;
420
420
case ValueType::ArrayPointer:
421
- ret->ConstructAt <plg::vector<uintptr_t >>();
421
+ ret->ConstructAt <plg::vector<void * >>();
422
422
break ;
423
423
case ValueType::ArrayFloat:
424
424
ret->ConstructAt <plg::vector<float >>();
@@ -1469,7 +1469,7 @@ namespace py3lm {
1469
1469
break ;
1470
1470
}
1471
1471
case ValueType::Pointer: {
1472
- delete reinterpret_cast <uintptr_t *>(ptr);
1472
+ delete reinterpret_cast <void * *>(ptr);
1473
1473
break ;
1474
1474
}
1475
1475
case ValueType::Float: {
@@ -1529,7 +1529,7 @@ namespace py3lm {
1529
1529
break ;
1530
1530
}
1531
1531
case ValueType::ArrayPointer: {
1532
- delete reinterpret_cast <plg::vector<uintptr_t >*>(ptr);
1532
+ delete reinterpret_cast <plg::vector<void * >*>(ptr);
1533
1533
break ;
1534
1534
}
1535
1535
case ValueType::ArrayFloat: {
@@ -1637,7 +1637,7 @@ namespace py3lm {
1637
1637
break ;
1638
1638
}
1639
1639
case ValueType::ArrayPointer: {
1640
- value = new plg::vector<uintptr_t >();
1640
+ value = new plg::vector<void * >();
1641
1641
a.storage .emplace_back (value, retType);
1642
1642
break ;
1643
1643
}
@@ -1738,7 +1738,7 @@ namespace py3lm {
1738
1738
return CreatePyObject (val);
1739
1739
}
1740
1740
case ValueType::Pointer: {
1741
- const uintptr_t val = ret.GetReturn <uintptr_t >();
1741
+ void * val = ret.GetReturn <void * >();
1742
1742
return CreatePyObject (val);
1743
1743
}
1744
1744
case ValueType::Float: {
@@ -1802,8 +1802,8 @@ namespace py3lm {
1802
1802
return CreatePyObjectList<uint64_t >(*arr);
1803
1803
}
1804
1804
case ValueType::ArrayPointer: {
1805
- auto * const arr = ret.GetReturn <plg::vector<uintptr_t >*>();
1806
- return CreatePyObjectList<uintptr_t >(*arr);
1805
+ auto * const arr = ret.GetReturn <plg::vector<void * >*>();
1806
+ return CreatePyObjectList<void * >(*arr);
1807
1807
}
1808
1808
case ValueType::ArrayFloat: {
1809
1809
auto * const arr = ret.GetReturn <plg::vector<float >*>();
@@ -1944,7 +1944,7 @@ namespace py3lm {
1944
1944
return true ;
1945
1945
}
1946
1946
case ValueType::Pointer: {
1947
- const auto value = ValueFromObject<uintptr_t >(pItem);
1947
+ const auto value = ValueFromObject<void * >(pItem);
1948
1948
if (!value) {
1949
1949
return false ;
1950
1950
}
@@ -2084,7 +2084,7 @@ namespace py3lm {
2084
2084
return true ;
2085
2085
}
2086
2086
case ValueType::ArrayPointer: {
2087
- void * const value = CreateArray<uintptr_t >(pItem);
2087
+ void * const value = CreateArray<void * >(pItem);
2088
2088
if (!value) {
2089
2089
return false ;
2090
2090
}
@@ -2199,7 +2199,7 @@ namespace py3lm {
2199
2199
case ValueType::UInt64:
2200
2200
return PushRefParam (CreateValue<uint64_t >(pItem));
2201
2201
case ValueType::Pointer:
2202
- return PushRefParam (CreateValue<uintptr_t >(pItem));
2202
+ return PushRefParam (CreateValue<void * >(pItem));
2203
2203
case ValueType::Float:
2204
2204
return PushRefParam (CreateValue<float >(pItem));
2205
2205
case ValueType::Double:
@@ -2229,7 +2229,7 @@ namespace py3lm {
2229
2229
case ValueType::ArrayUInt64:
2230
2230
return PushRefParam (CreateArray<uint64_t >(pItem));
2231
2231
case ValueType::ArrayPointer:
2232
- return PushRefParam (CreateArray<uintptr_t >(pItem));
2232
+ return PushRefParam (CreateArray<void * >(pItem));
2233
2233
case ValueType::ArrayFloat:
2234
2234
return PushRefParam (CreateArray<float >(pItem));
2235
2235
case ValueType::ArrayDouble:
@@ -2285,7 +2285,7 @@ namespace py3lm {
2285
2285
case ValueType::String:
2286
2286
return CreatePyObject (*reinterpret_cast <plg::string*>(std::get<0 >(a.storage [index])));
2287
2287
case ValueType::Pointer:
2288
- return CreatePyObject (*reinterpret_cast <uintptr_t *>(std::get<0 >(a.storage [index])));
2288
+ return CreatePyObject (*reinterpret_cast <void * *>(std::get<0 >(a.storage [index])));
2289
2289
case ValueType::ArrayBool:
2290
2290
return CreatePyObjectList (*reinterpret_cast <plg::vector<bool >*>(std::get<0 >(a.storage [index])));
2291
2291
case ValueType::ArrayChar8:
@@ -2309,7 +2309,7 @@ namespace py3lm {
2309
2309
case ValueType::ArrayUInt64:
2310
2310
return CreatePyObjectList (*reinterpret_cast <plg::vector<uint64_t >*>(std::get<0 >(a.storage [index])));
2311
2311
case ValueType::ArrayPointer:
2312
- return CreatePyObjectList (*reinterpret_cast <plg::vector<uintptr_t >*>(std::get<0 >(a.storage [index])));
2312
+ return CreatePyObjectList (*reinterpret_cast <plg::vector<void * >*>(std::get<0 >(a.storage [index])));
2313
2313
case ValueType::ArrayFloat:
2314
2314
return CreatePyObjectList (*reinterpret_cast <plg::vector<float >*>(std::get<0 >(a.storage [index])));
2315
2315
case ValueType::ArrayDouble:
0 commit comments