Skip to content

Commit

Permalink
apparently i64/u64 and isize/size_t are not the same thing on the Win…
Browse files Browse the repository at this point in the history
…dows
  • Loading branch information
ManifoldFR committed Aug 27, 2024
1 parent 514212c commit 4bb4640
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions bindings/python/src/expose-qpobject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ exposeQpObjectDense(nanobind::module_ m)
// .def_rw("run_time", &RuizEquilibration<T>::sym);

::nanobind::class_<dense::QP<T>>(m, "QP")
.def(::nanobind::init<i64,
i64,
i64,
.def(::nanobind::init<isize,
isize,
isize,
bool,
proxsuite::proxqp::HessianType,
proxsuite::proxqp::DenseBackend>(),
Expand Down Expand Up @@ -243,7 +243,7 @@ exposeQpObjectSparse(nanobind::module_ m)
{

::nanobind::class_<sparse::QP<T, I>>(m, "QP")
.def(::nanobind::init<i64, i64, i64>(),
.def(::nanobind::init<isize, isize, isize>(),
nanobind::arg("n") = 0,
nanobind::arg("n_eq") = 0,
nanobind::arg("n_in") = 0,
Expand Down
4 changes: 2 additions & 2 deletions bindings/python/src/expose-qpvector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exposeQPVectorDense(nanobind::module_ m)

::nanobind::class_<dense::BatchQP<T>>(m, "BatchQP")
.def(
::nanobind::init<u64>(),
::nanobind::init<size_t>(),
nanobind::arg("batch_size") = 0,
"Default constructor using the BatchSize of qp models to store.") // constructor
.def("init_qp_in_place",
Expand Down Expand Up @@ -51,7 +51,7 @@ exposeQPVectorSparse(nanobind::module_ m)

::nanobind::class_<sparse::BatchQP<T, I>>(m, "BatchQP")
.def(
::nanobind::init<u64>(),
::nanobind::init<long unsigned int>(),
nanobind::arg("batch_size") = 0,
"Default constructor using the BatchSize of qp models to store.") // constructor
.def("init_qp_in_place",
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/expose-results.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ exposeResults(nanobind::module_ m)
"find_H_minimal_eigenvalue.");

::nanobind::class_<Results<T>>(m, "Results")
.def(::nanobind::init<i64, i64, i64>(),
.def(::nanobind::init<isize, isize, isize>(),
nanobind::arg("n") = 0,
nanobind::arg("n_eq") = 0,
nanobind::arg("n_in") = 0,
Expand Down

0 comments on commit 4bb4640

Please sign in to comment.