Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bit type #112

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Update bit type #112

merged 1 commit into from
Dec 6, 2023

Conversation

cgzones
Copy link
Contributor

@cgzones cgzones commented Dec 4, 2023

Avoid potential truncations and compiler warnings:

setools/policyrep.c: In function ‘__pyx_f_7setools_9policyrep_13SELinuxPolicy__rebuild_attrs_from_map’:
setools/policyrep.c:88248:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
88248 |       __pyx_t_7 = ((__pyx_v_bit < ebitmap_length((&(__pyx_v_self->handle->p.attr_type_map[__pyx_v_i])))) != 0);
      |                                 ^
setools/policyrep.c:88356:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
88356 |       __pyx_t_7 = ((__pyx_v_bit < ebitmap_length((&__pyx_v_tmp_type->types))) != 0);
      |                                 ^

Avoid potential truncations and compiler warnings:

    setools/policyrep.c: In function ‘__pyx_f_7setools_9policyrep_13SELinuxPolicy__rebuild_attrs_from_map’:
    setools/policyrep.c:88248:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
    88248 |       __pyx_t_7 = ((__pyx_v_bit < ebitmap_length((&(__pyx_v_self->handle->p.attr_type_map[__pyx_v_i])))) != 0);
          |                                 ^
    setools/policyrep.c:88356:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
    88356 |       __pyx_t_7 = ((__pyx_v_bit < ebitmap_length((&__pyx_v_tmp_type->types))) != 0);
          |                                 ^

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
@pebenito pebenito merged commit 14d0312 into SELinuxProject:main Dec 6, 2023
8 of 12 checks passed
@cgzones cgzones deleted the warn branch December 11, 2023 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants