From eefc0accf407b8399199478355c656687435f3cf Mon Sep 17 00:00:00 2001 From: Gavin Halliday Date: Fri, 23 Feb 2024 09:43:20 +0000 Subject: [PATCH] HPCC-31331 Fix compile problem in span code on some Ubuntu 20.04 Signed-off-by: Gavin Halliday --- system/jlib/jtrace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/jlib/jtrace.cpp b/system/jlib/jtrace.cpp index 6e38d261225..4c3c811b201 100644 --- a/system/jlib/jtrace.cpp +++ b/system/jlib/jtrace.cpp @@ -589,7 +589,7 @@ class CSpan : public CInterfaceOf void setSpanAttribute(const char *name, __uint64 value) override { if (span && !isEmptyString(name)) - span->SetAttribute(name, value); + span->SetAttribute(name, (int64_t)value); // (uint64_t) would be even better but comments in attribute_value.h indicate that it is not supported by the standard. } void addSpanEvent(const char * eventName, IProperties * attributes) override