Skip to content

Commit

Permalink
correct ptr alignment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Nov 29, 2023
1 parent 6c49107 commit 5a8978e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: nanonext
Type: Package
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
Version: 0.10.4.9020
Version: 0.10.4.9021
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
a socket library implementing 'Scalability Protocols', a reliable,
high-performance standard for common communications patterns including
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nanonext 0.10.4.9020
# nanonext 0.10.4.9021

*This is a major stability release bundling the 'libnng' v1.6.0 source code.*

Expand Down
3 changes: 2 additions & 1 deletion src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ void nano_serialize_next(nano_buf *buf, SEXP object) {
R_Serialize(object, &output_stream);

if (registered && nano_refList != R_NilValue) {
*((uint64_t *) (buf->buf + 4)) = (uint64_t) buf->cur;
uint64_t cursor = (uint64_t) buf->cur;
memcpy(buf->buf + 4, &cursor, 8);
SEXP call, out;
PROTECT(call = Rf_lcons(nano_refHookIn, Rf_cons(nano_refList, R_NilValue)));
PROTECT(out = Rf_eval(call, R_GlobalEnv));
Expand Down

0 comments on commit 5a8978e

Please sign in to comment.