Skip to content

Commit d10d954

Browse files
committed
revise memory allocation params
1 parent b183b61 commit d10d954

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: nanonext
22
Type: Package
33
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
4-
Version: 0.12.0.9017
4+
Version: 0.12.0.9018
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
66
a socket library implementing 'Scalability Protocols', a reliable,
77
high-performance standard for common communications patterns including

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nanonext 0.12.0.9017 (development)
1+
# nanonext 0.12.0.9018 (development)
22

33
*Please note this version contains breaking behavioural changes - see updates below.*
44

src/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void nano_write_bytes(R_outpstream_t stream, void *src, int len) {
6262
Rf_error("serialization exceeds max length of raw vector");
6363
}
6464
do {
65-
buf->len = buf->len * (double) (buf->len < 1073741824 ? 2 : 1.2);
65+
buf->len = buf->len * (double) (buf->len > 268435456 ? 1.2 : 2);
6666
} while (buf->len < req);
6767
buf->buf = R_Realloc(buf->buf, buf->len, unsigned char);
6868
}

0 commit comments

Comments
 (0)