From cb66d4606c0f5d8832f7b0c8c98e4d5eee9d9d8c Mon Sep 17 00:00:00 2001 From: Joseph Malloch Date: Fri, 13 Mar 2026 16:40:37 -0300 Subject: [PATCH] Fixed typo in liblo.def: second instance of lo_bundle_get_timestamp was supposed to be lo_bundle_set_timestamp; added call this function in testlo.c --- src/liblo.def.in | 2 +- src/testlo.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/liblo.def.in b/src/liblo.def.in index 23a6e13..cbdcb72 100644 --- a/src/liblo.def.in +++ b/src/liblo.def.in @@ -151,4 +151,4 @@ EXPORTS lo_message_clear @148 lo_message_decref @149 lo_bundle_clear @150 - lo_bundle_get_timestamp @151 + lo_bundle_set_timestamp @151 diff --git a/src/testlo.c b/src/testlo.c index c39a574..5d655dd 100644 --- a/src/testlo.c +++ b/src/testlo.c @@ -1582,6 +1582,12 @@ void test_bundle(lo_server_thread st, lo_address a) lo_bundle_add_message(b, "/bundle", m1); TEST(lo_bundle_count(b) == 1); + TEST(lo_timetag_diff(lo_bundle_get_timestamp(b), t) == 0); + t.sec -= 1; + TEST(lo_timetag_diff(lo_bundle_get_timestamp(b), t) == 1); + lo_bundle_set_timestamp(b, t); + TEST(lo_timetag_diff(lo_bundle_get_timestamp(b), t) == 0); + lo_message_incref(m1); /* This should be safe for multiple copies of the same message. */