Skip to content

Commit

Permalink
Static check.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Nov 14, 2021
1 parent 328c908 commit d0d270a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/array_interface.h
Expand Up @@ -386,7 +386,7 @@ class ArrayInterface {
data = ArrayInterfaceHandler::ExtractData(array, n);

if (allow_mask) {
CHECK(D == 1) << "Masked array is not supported.";
static_assert(D == 1, "Masked array is not supported.");
common::Span<RBitField8::value_type> s_mask;
size_t n_bits = ArrayInterfaceHandler::ExtractMask(array, &s_mask);

Expand Down

0 comments on commit d0d270a

Please sign in to comment.