lib: strictly type function return status enumerations
[babeltrace.git] / src / lib / trace-ir / clock-class.h
index 4cbf77eaf1533da3d20abbd219b9872d0e4bad1e..153456ddb018b800061f7109f3e42bdbd12fc1dd 100644 (file)
@@ -37,6 +37,8 @@
 #include <stdint.h>
 #include <glib.h>
 
+#include "lib/func-status.h"
+
 struct bt_clock_class {
        struct bt_object base;
 
@@ -113,7 +115,7 @@ int bt_clock_class_clock_value_from_ns_from_origin(
 
        return bt_common_clock_value_from_ns_from_origin(cc->offset_seconds,
                cc->offset_cycles, cc->frequency, ns_from_origin,
-               raw_value);
+               raw_value) ? BT_FUNC_STATUS_OVERFLOW : BT_FUNC_STATUS_OK;
 }
 
 #endif /* BABELTRACE_TRACE_IR_CLOCK_CLASS_INTERNAL_H */
This page took 0.024324 seconds and 4 git commands to generate.