Skip to content

Commit a78fa45

Browse files
committed
Fix build on 32 bit
1 parent e3c8464 commit a78fa45

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

bindings/add-ons/network_settings/NetworkSettings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ py::class_<BNetworkInterfaceSettings>(m, "BNetworkInterfaceSettings")
130130
.def("Metric", &BNetworkInterfaceSettings::Metric, "")
131131
.def("SetMetric", &BNetworkInterfaceSettings::SetMetric, "", py::arg("metric"))
132132
.def("CountAddresses", &BNetworkInterfaceSettings::CountAddresses, "")
133-
.def("AddressAt", py::overload_cast<int>(&BNetworkInterfaceSettings::AddressAt), "", py::arg("index"))
134-
.def("AddressAt", py::overload_cast<int>(&BNetworkInterfaceSettings::AddressAt), "", py::arg("index"))
133+
.def("AddressAt", py::overload_cast<int32>(&BNetworkInterfaceSettings::AddressAt), "", py::arg("index"))
134+
.def("AddressAt", py::overload_cast<int32>(&BNetworkInterfaceSettings::AddressAt), "", py::arg("index"))
135135
.def("FindFirstAddress", &BNetworkInterfaceSettings::FindFirstAddress, "", py::arg("family"))
136136
.def("AddAddress", &BNetworkInterfaceSettings::AddAddress, "", py::arg("address"))
137137
.def("RemoveAddress", &BNetworkInterfaceSettings::RemoveAddress, "", py::arg("index"))

bindings/interface/Layout.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ py::class_<BLayout,PyBLayout,BLayoutItem>(m, "BLayout")
103103
.def("TargetView", &BLayout::TargetView, "")
104104
.def("View", &BLayout::View, "")
105105
.def("AddView", py::overload_cast<BView *>(&BLayout::AddView), "", py::arg("child"))
106-
.def("AddView", py::overload_cast<int, BView *>(&BLayout::AddView), "", py::arg("index"), py::arg("child"))
106+
.def("AddView", py::overload_cast<int32, BView *>(&BLayout::AddView), "", py::arg("index"), py::arg("child"))
107107
.def("AddItem", py::overload_cast<BLayoutItem *>(&BLayout::AddItem), "", py::arg("item"))
108-
.def("AddItem", py::overload_cast<int, BLayoutItem *>(&BLayout::AddItem), "", py::arg("index"), py::arg("item"))
108+
.def("AddItem", py::overload_cast<int32, BLayoutItem *>(&BLayout::AddItem), "", py::arg("index"), py::arg("item"))
109109
.def("RemoveView", &BLayout::RemoveView, "", py::arg("child"))
110110
.def("RemoveItem", py::overload_cast<BLayoutItem *>(&BLayout::RemoveItem), "", py::arg("item"))
111-
.def("RemoveItem", py::overload_cast<int>(&BLayout::RemoveItem), "", py::arg("index"))
111+
.def("RemoveItem", py::overload_cast<int32>(&BLayout::RemoveItem), "", py::arg("index"))
112112
.def("ItemAt", &BLayout::ItemAt, "", py::arg("index"))
113113
.def("CountItems", &BLayout::CountItems, "")
114114
.def("IndexOfItem", &BLayout::IndexOfItem, "", py::arg("item"))

bindings/locale/NumberFormat.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ py::class_<BNumberFormat, BFormat>(m, "BNumberFormat")
2121
.def(py::init<const BLocale *>(), "", py::arg("locale"))
2222
.def("Format", py::overload_cast<char *, size_t, const double>(&BNumberFormat::Format), "", py::arg("string"), py::arg("maxSize"), py::arg("value"))
2323
.def("Format", [](BNumberFormat& self,const double value) {
24-
BString string;
24+
BString string;
2525
status_t r = self.Format(string, value);
2626
return std::make_tuple(r,string);
2727
}
2828
, "", py::arg("value"))
29-
.def("Format", py::overload_cast<char *, size_t, int>(&BNumberFormat::Format), "", py::arg("string"), py::arg("maxSize"), py::arg("value"))
30-
.def("Format", [](BNumberFormat& self,int value) {
31-
BString string;
29+
.def("Format", py::overload_cast<char *, size_t, int32>(&BNumberFormat::Format), "", py::arg("string"), py::arg("maxSize"), py::arg("value"))
30+
.def("Format", [](BNumberFormat& self, int32 value) {
31+
BString string;
3232
status_t r = self.Format(string, value);
3333
return std::make_tuple(r,string);
3434
}

bindings/mail/MailContainer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ py::class_<BMailContainer, PyBMailContainer, BMailComponent>(m, "BMailContainer"
6565
.def(py::init<unsigned int>(), "", py::arg("defaultCharSet")=B_MAIL_NULL_CONVERSION)
6666
.def("AddComponent", &BMailContainer::AddComponent, "", py::arg("component"))
6767
.def("RemoveComponent", py::overload_cast<BMailComponent *>(&BMailContainer::RemoveComponent), "", py::arg("component"))
68-
.def("RemoveComponent", py::overload_cast<int>(&BMailContainer::RemoveComponent), "", py::arg("index"))
68+
.def("RemoveComponent", py::overload_cast<int32>(&BMailContainer::RemoveComponent), "", py::arg("index"))
6969
.def("GetComponent", &BMailContainer::GetComponent, "", py::arg("index"), py::arg("parse_now")=false)
7070
.def("CountComponents", &BMailContainer::CountComponents, "")
7171
;
@@ -77,7 +77,7 @@ py::class_<BMIMEMultipartMailContainer, PyBMIMEMultipartMailContainer, BMailCont
7777
.def("SetThisIsAnMIMEMessageText", &BMIMEMultipartMailContainer::SetThisIsAnMIMEMessageText, "", py::arg("text"))
7878
.def("AddComponent", &BMIMEMultipartMailContainer::AddComponent, "", py::arg("component"))
7979
.def("RemoveComponent", py::overload_cast<BMailComponent *>(&BMIMEMultipartMailContainer::RemoveComponent), "", py::arg("component"))
80-
.def("RemoveComponent", py::overload_cast<int>(&BMIMEMultipartMailContainer::RemoveComponent), "", py::arg("index"))
80+
.def("RemoveComponent", py::overload_cast<int32>(&BMIMEMultipartMailContainer::RemoveComponent), "", py::arg("index"))
8181
.def("GetComponent", &BMIMEMultipartMailContainer::GetComponent, "", py::arg("index"), py::arg("parse_now")=false)
8282
.def("CountComponents", &BMIMEMultipartMailContainer::CountComponents, "")
8383
.def("GetDecodedData", &BMIMEMultipartMailContainer::GetDecodedData, "", py::arg("data"))

bindings/mail/MailMessage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ py::class_<BEmailMessage, PyBEmailMessage, BMailContainer>(m, "BEmailMessage")
6767
.def("GetName", py::overload_cast<BString *>(&BEmailMessage::GetName,py::const_), "", py::arg("name"))
6868
.def("SendViaAccountFrom", &BEmailMessage::SendViaAccountFrom, "", py::arg("message"))
6969
.def("SendViaAccount", py::overload_cast<const char *>(&BEmailMessage::SendViaAccount), "", py::arg("accountName"))
70-
.def("SendViaAccount", py::overload_cast<int>(&BEmailMessage::SendViaAccount), "", py::arg("account"))
70+
.def("SendViaAccount", py::overload_cast<int32>(&BEmailMessage::SendViaAccount), "", py::arg("account"))
7171
.def("Account", &BEmailMessage::Account, "")
7272
.def("GetAccountName", [](BEmailMessage& self) {
7373
BString accountName;
@@ -77,7 +77,7 @@ py::class_<BEmailMessage, PyBEmailMessage, BMailContainer>(m, "BEmailMessage")
7777
, "")
7878
.def("AddComponent", &BEmailMessage::AddComponent, "", py::arg("component"))
7979
.def("RemoveComponent", py::overload_cast<BMailComponent *>(&BEmailMessage::RemoveComponent), "", py::arg("component"))
80-
.def("RemoveComponent", py::overload_cast<int>(&BEmailMessage::RemoveComponent), "", py::arg("index"))
80+
.def("RemoveComponent", py::overload_cast<int32>(&BEmailMessage::RemoveComponent), "", py::arg("index"))
8181
.def("GetComponent", &BEmailMessage::GetComponent, "", py::arg("index"), py::arg("parseNow")=false)
8282
.def("CountComponents", &BEmailMessage::CountComponents, "")
8383
.def("Attach", &BEmailMessage::Attach, "", py::arg("ref"), py::arg("includeAttributes")=true)

bindings/media/MediaAddOn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ py::class_<BMediaAddOn>(m, "BMediaAddOn")
131131
//.def("AutoStart", &BMediaAddOn::AutoStart, "", py::arg("index"), py::arg("_node"), py::arg("_internalID"), py::arg("_hasMore"))
132132
.def("AutoStart", [](BMediaAddOn& self, int index) {
133133
BMediaNode* node = nullptr;
134-
int32_t internalID = 0;
134+
int32 internalID = 0;
135135
bool hasMore = false;
136136
status_t result = self.AutoStart(index, &node, &internalID, &hasMore);
137137
return std::make_tuple(result, node, internalID, hasMore);

bindings/media/MediaFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ py::class_<BMediaFile>(m, "BMediaFile")
5050
.def("TrackAt", &BMediaFile::TrackAt, "", py::arg("index"))
5151
.def("ReleaseTrack", &BMediaFile::ReleaseTrack, "", py::arg("track"))
5252
.def("ReleaseAllTracks", &BMediaFile::ReleaseAllTracks, "")
53-
.def("CreateTrack", py::overload_cast<media_format *, const media_codec_info *, unsigned int>(&BMediaFile::CreateTrack), "", py::arg("mf"), py::arg("mci"), py::arg("flags")=0)
54-
.def("CreateTrack", py::overload_cast<media_format *, unsigned int>(&BMediaFile::CreateTrack), "", py::arg("mf"), py::arg("flags")=0)
53+
.def("CreateTrack", py::overload_cast<media_format *, const media_codec_info *, uint32>(&BMediaFile::CreateTrack), "", py::arg("mf"), py::arg("mci"), py::arg("flags")=0)
54+
.def("CreateTrack", py::overload_cast<media_format *, uint32>(&BMediaFile::CreateTrack), "", py::arg("mf"), py::arg("flags")=0)
5555
.def("AddCopyright", &BMediaFile::AddCopyright, "", py::arg("data"))
5656
.def("AddChunk", &BMediaFile::AddChunk, "", py::arg("type"), py::arg("data"), py::arg("size"))
5757
.def("CommitHeader", &BMediaFile::CommitHeader, "")

bindings/media/MediaFormats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ py::class_<media_format_description>(m, "media_format_description")
232232
py::class_<BMediaFormats>(m, "BMediaFormats")
233233
.def(py::init(), "")
234234
.def("InitCheck", &BMediaFormats::InitCheck, "")
235-
.def("MakeFormatFor", py::overload_cast<const media_format_description *, int, media_format *, unsigned int, void *>(&BMediaFormats::MakeFormatFor), "", py::arg("descriptions"), py::arg("descriptionCount"), py::arg("_inOutFormat"), py::arg("flags")=0, py::arg("_reserved")=0)
235+
.def("MakeFormatFor", py::overload_cast<const media_format_description *, int32, media_format *, uint32, void *>(&BMediaFormats::MakeFormatFor), "", py::arg("descriptions"), py::arg("descriptionCount"), py::arg("_inOutFormat"), py::arg("flags")=0, py::arg("_reserved")=0)
236236
.def("GetFormatFor", &BMediaFormats::GetFormatFor, "", py::arg("description"), py::arg("_outFormat"))
237237
.def("GetCodeFor", &BMediaFormats::GetCodeFor, "", py::arg("format"), py::arg("family"), py::arg("_outDescription"))
238238
.def("RewindFormats", &BMediaFormats::RewindFormats, "")

bindings/media/MediaTrack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ py::class_<BMediaTrack, std::unique_ptr<BMediaTrack,py::nodelete>>(m, "BMediaTra
5858
},"")
5959
.def("AddCopyright", &BMediaTrack::AddCopyright, "", py::arg("copyright"))
6060
.def("AddTrackInfo", &BMediaTrack::AddTrackInfo, "", py::arg("code"), py::arg("data"), py::arg("size"), py::arg("flags")=0)
61-
.def("WriteFrames", py::overload_cast<const void *, int, int>(&BMediaTrack::WriteFrames), "", py::arg("data"), py::arg("frameCount"), py::arg("flags")=0)
61+
.def("WriteFrames", py::overload_cast<const void *, int32, int32>(&BMediaTrack::WriteFrames), "", py::arg("data"), py::arg("frameCount"), py::arg("flags")=0)
6262
.def("WriteFrames", py::overload_cast<const void *, int64_t, media_encode_info *>(&BMediaTrack::WriteFrames), "", py::arg("data"), py::arg("frameCount"), py::arg("info"))
63-
.def("WriteChunk", py::overload_cast<const void *, size_t, unsigned int>(&BMediaTrack::WriteChunk), "", py::arg("data"), py::arg("size"), py::arg("flags")=0)
63+
.def("WriteChunk", py::overload_cast<const void *, size_t, uint32>(&BMediaTrack::WriteChunk), "", py::arg("data"), py::arg("size"), py::arg("flags")=0)
6464
.def("WriteChunk", py::overload_cast<const void *, size_t, media_encode_info *>(&BMediaTrack::WriteChunk), "", py::arg("data"), py::arg("size"), py::arg("info"))
6565
.def("Flush", &BMediaTrack::Flush, "")
6666
//.def("GetParameterWeb", &BMediaTrack::GetParameterWeb, "", py::arg("_web"))

0 commit comments

Comments
 (0)