Skip to content

Commit aba17d5

Browse files
committed
internal_error() is not covered
1 parent b7894e6 commit aba17d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static R_INLINE size_t get_full_size(size_t n_elements, double load_factor) {
2323
// precondition: n / load_factor < SIZE_MAX
2424
// this is implemented a bit stricter than needed and would fail some almost-too-high sizes
2525
// due to the size_t -> double conversion
26-
if ((size_t)((double)SIZE_MAX * load_factor) <= n_elements) internal_error(
26+
if ((size_t)((double)SIZE_MAX * load_factor) <= n_elements) internal_error( // # nocov
2727
__func__, "n=%zu / load_factor=%g would overflow size_t",
2828
n_elements, load_factor
2929
);

0 commit comments

Comments
 (0)