From: Mathieu Desnoyers Date: Thu, 3 Aug 2017 15:43:18 +0000 (-0400) Subject: Fix: tests: offset_s * ns_per_s should not overflow uint64_t X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=233965984972499c95df84fb0d2c4144030176c4;p=deliverable%2Fbabeltrace.git Fix: tests: offset_s * ns_per_s should not overflow uint64_t Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index fd73d9977..5347afbf3 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -2830,7 +2830,7 @@ int main(int argc, char **argv) const char *returned_clock_name; const char *returned_clock_description; const uint64_t frequency = 1123456789; - const int64_t offset_s = 1351530929945824323; + const int64_t offset_s = 13515309; const int64_t offset = 1234567; int64_t get_offset_s, get_offset;