[chore] fix clang compile error (#7883)

This commit is contained in:
Pxl
2022-01-26 12:53:35 +08:00
committed by GitHub
parent e3bc232578
commit cd73a6b84b
14 changed files with 56 additions and 32 deletions

View File

@ -854,7 +854,7 @@ TEST_F(BitmapFunctionsTest, bitmap_not) {
expected = BigIntVal(0);
ASSERT_EQ(expected, result);
bitmap1 = BitmapValue({1});
bitmap1 = BitmapValue(1);
bitmap2 = BitmapValue({2, 1});
bitmap_src = convert_bitmap_to_string(ctx, bitmap1);
@ -1151,7 +1151,7 @@ TEST_F(BitmapFunctionsTest, sub_bitmap) {
ASSERT_EQ(res, convert_bitmap_to_string(ctx, bitmap5));
res = BitmapFunctions::sub_bitmap(ctx, bitmap_src, BigIntVal(-1), BigIntVal(2));
BitmapValue bitmap6({500});
BitmapValue bitmap6(500);
ASSERT_EQ(res, convert_bitmap_to_string(ctx, bitmap6));
res = BitmapFunctions::sub_bitmap(ctx, bitmap_src, BigIntVal(-7), BigIntVal(6));