Fix: use underlying types for array and sequence assertion
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 27 Apr 2020 07:12:11 +0000 (03:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 27 Apr 2020 07:19:23 +0000 (03:19 -0400)
commit029ba7b267745ada271dcc18f8b1880e27510932
tree600dfa9059d2441f22868e547c137f9ac00b1111
parent2df82195d140b39c40abfb43d526804a9d14d3da
Fix: use underlying types for array and sequence assertion

Based on https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html:

"Built-in Function: int __builtin_types_compatible_p (type1, type2)

[...] two types that are typedefed are considered compatible if
their underlying types are compatible."

This definition explains why listing all the {u,}intX_t types misses
the underlying type "long" on 32-bit architectures which rely on
"long long" for 64-bit integers. Therefore, list all the underlying
integer types.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-tracer.h
This page took 0.024833 seconds and 4 git commands to generate.