Skip to content

Commit 751da23

Browse files
committed
Small tidy up and bump ABI cehck.
1 parent 508c0eb commit 751da23

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/cext/ABI_check.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5
1+
6

src/main/c/cext/fd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ void rb_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src) {
110110
void rb_fd_init_copy(rb_fdset_t *dst, rb_fdset_t *src) {
111111
size_t size = howmany(rb_fd_max(src), NFDBITS) * sizeof(fd_mask);
112112

113-
if (size < sizeof(fd_set))
114-
size = sizeof(fd_set);
113+
if (size < sizeof(fd_set)) {
114+
size = sizeof(fd_set);
115+
}
115116
dst->maxfd = src->maxfd;
116117
dst->fdset = xmalloc(size);
117118
memcpy(dst->fdset, src->fdset, size);

0 commit comments

Comments
 (0)