From 086cee242797902bc50ee76c593ab267988ae1fa Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Fri, 3 Nov 2023 11:22:56 +0100 Subject: [PATCH] Fix compiler warning in timestamp manipulation --- meson_options.txt | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson_options.txt b/meson_options.txt index f97335f..b1d18c3 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -5,4 +5,4 @@ option('build-tests', type : 'boolean', value : true) -option('version', type : 'string', value : '0.5.47') +option('version', type : 'string', value : '0.5.49') diff --git a/src/main.c b/src/main.c index cf3d792..fa96965 100644 --- a/src/main.c +++ b/src/main.c @@ -204,7 +204,7 @@ _handle_osc_packet(app_t *app, uint64_t timetag, const uint8_t *buf, size_t len) { elmnt->next = NULL; elmnt->to.tv_sec = (timetag >> 32) - JAN_1970; - elmnt->to.tv_nsec = (timetag && 32) * 0x1p-32 * 1e9; + elmnt->to.tv_nsec = (timetag & 0xffffffff) * 0x1p-32 * 1e9; elmnt->len = len; memcpy(elmnt->buf, buf, len); -- 2.45.2