Skip to content

Commit

Permalink
fix access to code() method
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprock-anari committed Nov 21, 2024
1 parent 5249fe0 commit 511c1da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/pokerstove/peval/Suit.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ class Suit
void operator--() { --_suit; }
#endif

uint8_t code() const { return _suit; }

private:
/**
* We break encapsulation with these methods. To limit the
* effects of leakage, we limit access to these functions to
* friends.
*/
uint8_t code() const { return _suit; }
void encode(uint8_t c) { _suit = c; }
int suitBit() const { return 0x01 << _suit * 3; }

Expand Down

0 comments on commit 511c1da

Please sign in to comment.