Skip to content

Commit

Permalink
Use consistent type size_t for node_count() in C++ bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
volkm authored and nhusung committed Apr 20, 2024
1 parent 04f4cc7 commit e7bccd2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindings/cpp/include/oxidd/bcdd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ class bcdd_function {
/// Locking behavior: acquires a shared manager lock.
///
/// @returns Node count including the terminal node
[[nodiscard]] size_t node_count() const noexcept {
[[nodiscard]] std::size_t node_count() const noexcept {
assert(_func._p);
return capi::oxidd_bcdd_node_count(_func);
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/cpp/include/oxidd/bdd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ class bdd_function {
/// Locking behavior: acquires a shared manager lock.
///
/// @returns Node count including the two terminal nodes
[[nodiscard]] uint64_t node_count() const noexcept {
[[nodiscard]] std::size_t node_count() const noexcept {
assert(_func._p);
return capi::oxidd_bdd_node_count(_func);
}
Expand Down
1 change: 1 addition & 0 deletions bindings/cpp/include/oxidd/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#if __cplusplus >= 202002L

#include <concepts>
#include <cstddef>
#include <cstdlib>
#include <functional>
#include <utility>
Expand Down
2 changes: 1 addition & 1 deletion bindings/cpp/include/oxidd/zbdd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class zbdd_function {
/// Locking behavior: acquires a shared manager lock.
///
/// @returns Node count including the two terminal nodes
[[nodiscard]] uint64_t node_count() const noexcept {
[[nodiscard]] std::size_t node_count() const noexcept {
assert(_func._p);
return capi::oxidd_zbdd_node_count(_func);
}
Expand Down

0 comments on commit e7bccd2

Please sign in to comment.