Skip to content

Commit

Permalink
Fix Bigint-related comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaibrodschi authored and tbarbette committed Oct 1, 2024
1 parent 496dfa7 commit 6945de8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/click/bigint.hh
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ class Bigint { public:

};

/** @brief Typical Bigint usage with uint32_t limb_type. */
/** @brief Typical Bigint usage with uint64_t limb_type. */
typedef Bigint<uint64_t> bigint;

CLICK_ENDDECLS
Expand Down
2 changes: 1 addition & 1 deletion include/click/tokenbucket.hh
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void TokenRateX<P>::assign(token_type rate, token_type capacity)
}
_token_scale = max_tokens / capacity;

// XXX on non-32 bit types
// XXX on non-64 bit types
static_assert(sizeof(bigint::limb_type) == sizeof(token_type),
"bigint::limb_type should have the same size as token_type.");
bigint::limb_type l[2] = { 0, 0 };
Expand Down

0 comments on commit 6945de8

Please sign in to comment.