Reinstate the size_t MappedType with compile-time bit size checking

Replace the use of size_t in custom code with ulong so SIP doesn't try to use the MappedType there (it only uses pointers for them.)
This commit is contained in:
Robin Dunn
2016-03-04 21:05:46 -08:00
parent 2c0ba84396
commit cb701bd77e
9 changed files with 93 additions and 100 deletions

View File

@@ -831,7 +831,7 @@ public:
sipRes = sipCpp->size();
%End
{ItemClass}* __getitem__(size_t index);
{ItemClass}* __getitem__(ulong index);
%MethodCode
if (index < sipCpp->size()) {{
{ListClass}::compatibility_iterator node = sipCpp->Item(index);
@@ -963,7 +963,7 @@ public:
sipRes = sipCpp->GetCount();
%End
{ItemClass}& __getitem__(size_t index);
{ItemClass}& __getitem__(ulong index);
%MethodCode
if (index < sipCpp->GetCount()) {{
sipRes = &sipCpp->Item(index);
@@ -1026,7 +1026,7 @@ public:
sipRes = sipCpp->GetCount();
%End
{ItemClass}* __getitem__(size_t index);
{ItemClass}* __getitem__(ulong index);
%MethodCode
if (index < sipCpp->GetCount()) {{
sipRes = sipCpp->Item(index);