Fix: bt2: use unsigned iteration variable
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 7 Aug 2019 03:48:44 +0000 (23:48 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 7 Aug 2019 14:31:23 +0000 (10:31 -0400)
commitebccea5f8f33e97a30bb7960a3a4bf06d6258ef7
tree3b6f03797b7ece605ad71646b3da2d19840b03e8
parent44269abb1a3769a1f76eab0de5b23cd7cb0cb58d
Fix: bt2: use unsigned iteration variable

This fixes the following compiler diagnostic (gcc 9.1.0):

    bt2/native_bt.c: In function ‘_wrap_field_class_enumeration_unsigned_get_mapping_labels_for_value’:
    bt2/native_bt.c:9387:25: error: comparison of integer expressions of different signedness: ‘int’ and ‘uint64_t’ {aka ‘long unsigned int’} [-Werror=sign-compare]
     9387 |       for (int i = 0; i < *arg4; i++) {
          |                         ^

Change-Id: I543c61d64c0cf7b42cb242bdbb7b71cbf67dbe48
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1834
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/bindings/python/bt2/bt2/native_bt_field_class.i
This page took 0.026262 seconds and 4 git commands to generate.