[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 23/52] audio: remove audio_MIN, audio_MAX
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH v2 23/52] audio: remove audio_MIN, audio_MAX |
Date: |
Mon, 7 Jan 2019 10:54:54 +0100 |
User-agent: |
NeoMutt/20180716 |
> The first one is fixable with an explicit cast (ugly but works), but the
> second one is more problematic. It means we can't write stuff like
>
> USBPort uports[MAX(MAXPORTS_2, MAXPORTS_3)];
>
> when not in a function. So we either need a dumb version of MIN/MAX, or
> scrape the idea altogether.
const_max() for stuff which is a compile time constant maybe?
cheers,
Gerd
- Re: [Qemu-devel] [PATCH v2 23/52] audio: remove audio_MIN, audio_MAX,
Gerd Hoffmann <=