Skip to content

Commit

Permalink
Fix messed up BlockHeader binding
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasmeszaros committed Jan 30, 2024
1 parent 2e182b8 commit 1b33888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybgcode/pybgcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ PYBIND11_MODULE(MODULE_NAME, m) {
.def(py::init<>())
.def_readonly("type", &core::BlockHeader::type)
.def_readonly("compression", &core::BlockHeader::compression)
.def_readonly("uncompressed_size", &core::BlockHeader::type)
.def_readonly("uncompressed_size", &core::BlockHeader::uncompressed_size)
.def_readonly("compressed_size", &core::BlockHeader::compressed_size)
.def("get_size()", &core::BlockHeader::get_size)
.def("get_size", &core::BlockHeader::get_size)
.def("read", [](core::BlockHeader &self, FILEWrapper &file) {
return self.read(*file.fptr);
})
Expand Down

0 comments on commit 1b33888

Please sign in to comment.