Skip to content

Commit 195b67a

Browse files
committed
Update GitHub Actions workflow to use main branch instead of $default-branch
1 parent aae5afd commit 195b67a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/cmake-single-platform.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CMake on a single platform
22

33
on:
44
push:
5-
branches: [ $default-branch ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ $default-branch ]
7+
branches: [ main ]
88
workflow_dispatch:
99

1010
env:

src/vm_check.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,7 @@ void VMCheck::visit_method_handle_info(const ClassFile& class_file, const Consta
409409
abort();
410410
}
411411

412-
if (constant_pool_info.tag != ConstantPoolInfo::METHOD_REF
413-
&& constant_pool_info.tag != ConstantPoolInfo::INTERFACE_METHOD_REF) {
412+
if (constant_pool_info.tag != ConstantPoolInfo::METHOD_REF && constant_pool_info.tag != ConstantPoolInfo::INTERFACE_METHOD_REF) {
414413
std::cerr << "The reference index of the method handle needs to be a method ref or interface method ref." << std::endl;
415414
abort();
416415
}

0 commit comments

Comments
 (0)