Skip to content

Comments

swtpm: Fix comparison of integers with different signedness#1060

Merged
stefanberger merged 1 commit intomasterfrom
master.next
Sep 23, 2025
Merged

swtpm: Fix comparison of integers with different signedness#1060
stefanberger merged 1 commit intomasterfrom
master.next

Conversation

@stefanberger
Copy link
Owner

@stefanberger stefanberger commented Sep 23, 2025

Fix the following issue reported when compiling on m68k:

ctrlchannel.c: In function 'ctrlchannel_process_fd': ctrlchannel.c:710:20: error: comparison of integer expressions of
   different signedness: 'uint32_t' {aka 'unsigned int'} and 'ssize_t'
   {aka 'int'} [-Werror=sign-compar ]
  710 |         if (remain < n)
      |                    ^

Fix the following issue reported when compiling on m68k:

ctrlchannel.c: In function 'ctrlchannel_process_fd':
ctrlchannel.c:710:20: error: comparison of integer expressions of
   different signedness: 'uint32_t' {aka 'unsigned int'} and 'ssize_t'
   {aka 'int'} [-Werror=sign-compar ]
  710 |         if (remain < n)
      |                    ^

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger stefanberger merged commit 72c5dab into master Sep 23, 2025
5 checks passed
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.

1 participant