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

Fix added integer u32 #145

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix added integer u32 #145

wants to merge 4 commits into from

Conversation

Jamaika1
Copy link
Contributor

@Jamaika1 Jamaika1 commented Sep 5, 2024

No description provided.

```
xeve_picman.c:121:95: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  121 |         if (pm->pic[i] && pm->pic[i]->need_for_out && pm->pic[i]->poc != 0 && pm->pic[i]->poc > max_poc)
      |                                                                                               ^
xeve_picman.c:137:33: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  137 |             if (pm->pic[i]->poc < reordered_min_poc)
      |                                 ^
```
```
xeve_enc.c: In function 'xeve_push_frm':
xeve_enc.c:686:32: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  686 |         else if (ctx->pic_icnt == ctx->ts.frame_delay)
      |                                ^~
xeve_enc.c: In function 'decide_slice_type':
xeve_enc.c:1126:21: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and  int' [-Wsign-compare]
 1126 |         if(pic_icnt == gop_size - 1) /* special case when sequence start */
      |                     ^~
xeve_enc.c: In function 'xeve_pic_finish':
xeve_enc.c:1327:26: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and  int' [-Wsign-compare]
 1327 |         if (ctx->pic_cnt < ctx->ts.frame_delay)
      |                          ^
```
```
xeve_eco.c: In function 'write_sei_userdata_unregistered':
xeve_eco.c:362:23: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  362 |     for (u32 i = 0; i < sei_userdata->payload_size; i++)
      |                       ^
```
```
xevem_picman.c:468:69: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  468 |             if (pm->pic[j] && pm->pic[j]->is_ref && pm->pic[j]->poc == (currentPOC - rpl->ref_pics[i]))
      |                                                                     ^~
xevem_picman.c: In function 'create_explicit_rpl':
xevem_picman.c:498:48: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  498 |             if (pic && pic->is_ref && pic->poc == (poc_val - rpl0->ref_pics[ii]))
      |                                                ^~
xevem_picman.c:522:48: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  522 |             if (pic && pic->is_ref && pic->poc == (poc_val - rpl1->ref_pics[ii]))
      |                                                ^~
xevem_picman.c: In function 'xeve_picman_refp_rpl_based_init':
xevem_picman.c:617:64: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  617 |         while (j < pm->cur_num_ref_pics && pm->pic_ref[j]->poc != refPicPoc) j++;
      |                                                                ^~
xevem_picman.c:620:61: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  620 |         if (j < pm->cur_num_ref_pics && pm->pic_ref[j]->poc == refPicPoc)
      |                                                             ^~
xevem_picman.c:637:64: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  637 |         while (j < pm->cur_num_ref_pics && pm->pic_ref[j]->poc != refPicPoc) j++;
      |                                                                ^~
xevem_picman.c:640:61: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  640 |         if (j < pm->cur_num_ref_pics && pm->pic_ref[j]->poc == refPicPoc)
      |                                                             ^~
xevem_picman.c: In function 'xeve_picman_refpic_marking':
xevem_picman.c:671:30: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  671 |                 if (pic->poc == (poc_val - sh->rpl_l0.ref_pics[j]))  //NOTE: we need to put POC also in XEVE_PIC
      |                              ^~
xevem_picman.c:681:30: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  681 |                 if (pic->poc == (poc_val - sh->rpl_l1.ref_pics[j]))
      |                              ^~
```
Copy link
Collaborator

@kpchoi kpchoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this for removing warning message in some specific platform?
Any reason why '(u32)' casting needs in that cases?

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