Skip to content

Commit 8dd2cdb

Browse files
author
Isaac Brodsky
authored
Enforce C format check in GH Actions (#105)
* Enforce C format check in GH Actions * fix format
1 parent 28d5245 commit 8dd2cdb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
- name: Tests
4343
run: mvn "-Dh3.system.prune=true" -B -V clean test site
4444

45+
- name: Format check for C
46+
run: git diff --exit-code
47+
4548
tests-new-dockcross:
4649
name: Dockcross ${{ matrix.dockcross-tag }} Java ${{ matrix.java-version }} ${{ matrix.os }}
4750
runs-on: ${{ matrix.os }}

src/main/c/h3-java/src/jniapi.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -950,9 +950,8 @@ Java_com_uber_h3core_NativeMethods_greatCircleDistanceM(
950950
* Method: edgeLengthRads
951951
* Signature: (J)D
952952
*/
953-
JNIEXPORT jdouble JNICALL
954-
Java_com_uber_h3core_NativeMethods_edgeLengthRads(JNIEnv *env,
955-
jobject thiz, jlong h3) {
953+
JNIEXPORT jdouble JNICALL Java_com_uber_h3core_NativeMethods_edgeLengthRads(
954+
JNIEnv *env, jobject thiz, jlong h3) {
956955
jdouble out;
957956
H3Error err = edgeLengthRads(h3, &out);
958957
if (err) {

0 commit comments

Comments
 (0)