[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] vl: Abort if multiple machines are registered as default
From: |
Richard Henderson |
Subject: |
Re: [PATCH v2] vl: Abort if multiple machines are registered as default |
Date: |
Fri, 7 Feb 2020 12:28:25 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 2/7/20 11:27 AM, Philippe Mathieu-Daudé wrote:
> + default_count += !!mc->is_default;
I'd prefer we simply change mc->is_default to bool.
There's no good reason for it to be type int, afaics.
In the meantime, there are no settings of is_default outside {0,1}, so you
could just drop the !! for now.
r~