Clean-up: modernize pretty_xml.cpp
[lttng-tools.git] / src / common / tracker.cpp
index 1f292a3f02981653fd90682bc88e6733c45d98b4..dba84293dc216f1d28e3f44239149032326ac8f3 100644 (file)
@@ -39,11 +39,11 @@ struct process_attr_tracker_value_comm {
        ((as_type) (std::is_signed<as_type>::value ? (value_ptr)->u._signed : \
                                                     (value_ptr)->u._unsigned))
 
-#define SET_INTEGRAL_COMM_VALUE(comm_value, val)                                     \
-       if (std::is_signed<typeof(val)>::value) {                                    \
-               (comm_value)->u._signed = (typeof((comm_value)->u._signed)) val;     \
-       } else {                                                                     \
-               (comm_value)->u._unsigned = (typeof((comm_value)->u._unsigned)) val; \
+#define SET_INTEGRAL_COMM_VALUE(comm_value, val)                                       \
+       if (std::is_signed<typeof(val)>::value) {                                      \
+               (comm_value)->u._signed = (typeof((comm_value)->u._signed)) (val);     \
+       } else {                                                                       \
+               (comm_value)->u._unsigned = (typeof((comm_value)->u._unsigned)) (val); \
        }
 
 static inline bool is_virtual_process_attr(enum lttng_process_attr process_attr)
This page took 0.023532 seconds and 4 git commands to generate.