Skip to content

Commit 1cc7cd4

Browse files
authored
[libc] Fix size_t used without including stddef.h in CPP/limit.h. (#78861)
1 parent 0175a1e commit 1cc7cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/CPP/limits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace cpp {
2020

2121
// Some older gcc distributions don't define these for 32 bit targets.
2222
#ifndef LLONG_MAX
23-
constexpr size_t LLONG_BIT_WIDTH = sizeof(long long) * 8;
23+
constexpr unsigned int LLONG_BIT_WIDTH = sizeof(long long) * 8;
2424
constexpr long long LLONG_MAX = ~0LL ^ (1LL << (LLONG_BIT_WIDTH - 1));
2525
constexpr long long LLONG_MIN = 1LL << (LLONG_BIT_WIDTH - 1);
2626
constexpr unsigned long long ULLONG_MAX = ~0ULL;

0 commit comments

Comments
 (0)