Skip to content

Commit 205fa62

Browse files
Fix C++23 enum compatibility in test-backend-ops.cpp
- Add static_cast to resolve deprecated bitwise operation between different enum types - Fixes compilation error: GGML_SCALE_MODE_BILINEAR | GGML_SCALE_FLAG_ALIGN_CORNERS - Required for C++23 compatibility in sanitizer and other strict builds Co-Authored-By: Jaime Mizrachi <[email protected]>
1 parent 0656546 commit 205fa62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-backend-ops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6317,7 +6317,7 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
63176317
test_cases.emplace_back(new test_interpolate(GGML_TYPE_F32, {2, 5, 7, 11}, {5, 7, 11, 13}, mode));
63186318
test_cases.emplace_back(new test_interpolate(GGML_TYPE_F32, {5, 7, 11, 13}, {2, 5, 7, 11}, mode));
63196319
}
6320-
test_cases.emplace_back(new test_interpolate(GGML_TYPE_F32, {2, 5, 7, 11}, {5, 7, 11, 13}, GGML_SCALE_MODE_BILINEAR | GGML_SCALE_FLAG_ALIGN_CORNERS));
6320+
test_cases.emplace_back(new test_interpolate(GGML_TYPE_F32, {2, 5, 7, 11}, {5, 7, 11, 13}, static_cast<ggml_scale_mode>(GGML_SCALE_MODE_BILINEAR | static_cast<int>(GGML_SCALE_FLAG_ALIGN_CORNERS))));
63216321

63226322
test_cases.emplace_back(new test_sum());
63236323
test_cases.emplace_back(new test_sum_rows());

0 commit comments

Comments
 (0)