Skip to content

Commit 7a9d02a

Browse files
committed
Ensure that sizeof(pthread_t) == sizeof(jlong)
1 parent 85c2ac0 commit 7a9d02a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/c/rubysignal/src/rubysignal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#include <pthread.h>
33
#include <signal.h>
44

5+
_Static_assert(sizeof(pthread_t) == sizeof(jlong), "Expected sizeof(pthread_t) == sizeof(jlong)");
6+
57
static void empty_handler(int sig) {
68
}
79

0 commit comments

Comments
 (0)