[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 0/4] Net patches
From: |
Peter Maydell |
Subject: |
Re: [PULL 0/4] Net patches |
Date: |
Mon, 28 Oct 2019 21:42:36 +0000 |
On Mon, 28 Oct 2019 at 06:35, Jason Wang <address@hidden> wrote:
>
> The following changes since commit 187f35512106501fe9a11057f4d8705431e0026d:
>
> Merge remote-tracking branch
> 'remotes/stsquad/tags/pull-testing-next-251019-3' into staging (2019-10-26
> 10:13:48 +0100)
>
> are available in the git repository at:
>
> https://github.com/jasowang/qemu.git tags/net-pull-request
>
> for you to fetch changes up to 5af982a47cf6b6cd9beb872e5a9b940e43df5bf9:
>
> COLO-compare: Fix incorrect `if` logic (2019-10-28 14:28:31 +0800)
>
> ----------------------------------------------------------------
>
> ----------------------------------------------------------------
Hi -- I get this compile failure on some hosts (s390, aarch64,
aarch32, ppc):
/home/pm215/qemu/hw/net/tulip.c: In function ‘tulip_idblock_crc’:
/home/pm215/qemu/hw/net/tulip.c:859:9: error: comparison is always
true due to limited range of data type [-Werror=type-limits]
for (bit = 15; bit >= 0; bit--) {
^
'bit' here is of type char, which can be either signed
or unsigned depending on the host. If it's unsigned
(as is the case on the above architectures), then the
loop will never terminate because "bit >= 0" is always true.
Plain old 'int' is probably a better choice anyway.
thanks
-- PMM