Skip to content

Commit 4e16f9f

Browse files
committed
add type
1 parent acb3b95 commit 4e16f9f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ task:
4242
macos_instance:
4343
image: ghcr.io/cirruslabs/macos-runner:sonoma
4444
# only_if: $CIRRUS_TAG != ''
45-
only_if: "changesInclude('macosx-arm64/*', '.cirrus.yml')"
45+
only_if: "changesInclude('macosx-arm64/*', '.cirrus.yml', 'src/*')"
4646
script: |
4747
git submodule init
4848
git submodule update --init --recursive

src/java/datalevin/dtlvnative/Test.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,10 @@ static void expect(boolean must_be_true, String message) {
186186
}
187187

188188
static void expectNoError(PointerPointer<BytePointer> error, String message) {
189-
if (error.get() != null) {
190-
String msg = error.get().getString();
189+
190+
BytePointer errPtr = error.get();
191+
if (errPtr != null) {
192+
String msg = errPtr.getString();
191193
System.out.println(message + ": " + msg);
192194
System.exit(-1);
193195
}

0 commit comments

Comments
 (0)