Commit dce4555
let F14Table::size explicitly be size_t
Summary:
Closes: facebook/folly#2551.
The `F14Table::iterator` type packs the size in with other table metadata into `uint64_t`. But it is possible on some platforms for `size_t` to be smaller than `uint64_t`, making some uses of the result of `size()` into implicit narrowing casts.
The size of the table cannot be larger than is representable by `size_t` but due to the bit-packing and shifting we still need the `uint64_t` representation. So let `F14Table::size()` explicitly cast.
Reviewed By: r-barnes
Differential Revision: D93896663
fbshipit-source-id: 39e55b8d21056fcd43b0fdba942603be9953634b1 parent 2426260 commit dce4555
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
1582 | | - | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
1583 | 1585 | | |
1584 | 1586 | | |
1585 | 1587 | | |
| |||
0 commit comments