Skip to content

Commit

Permalink
[libc] add <limits> specialization for signed char
Browse files Browse the repository at this point in the history
  • Loading branch information
gchatelet committed Aug 8, 2023
1 parent 895c4ac commit 0abce1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libc/src/__support/CPP/limits.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ template <> class numeric_limits<char> {
static constexpr char max() { return CHAR_MAX; }
static constexpr char min() { return CHAR_MIN; }
};
template <> class numeric_limits<signed char> {
public:
static constexpr signed char max() { return SCHAR_MAX; }
static constexpr signed char min() { return SCHAR_MIN; }
};
template <> class numeric_limits<unsigned char> {
public:
static constexpr unsigned char max() { return UCHAR_MAX; }
Expand Down

0 comments on commit 0abce1e

Please sign in to comment.