diff options
Diffstat (limited to 'libaxl_receive.c')
-rw-r--r-- | libaxl_receive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libaxl_receive.c b/libaxl_receive.c index 227e149..b17cdc9 100644 --- a/libaxl_receive.c +++ b/libaxl_receive.c @@ -252,7 +252,7 @@ libaxl_receive(LIBAXL_CONTEXT *restrict ctx, union libaxl_input *restrict msgp, } code = *(uint8_t *)inbuf; - code &= 0x7F; /* Synthetic events have the highest bit set. */ + code &= ~LIBAXL_SYNTHETIC_EVENT_BIT; if (code == LIBAXL_REPLY) { n = (uint64_t)ntohl(*(uint32_t *)&inbuf[4]); |