|
From: | Richard Henderson |
Subject: | Re: [PATCH 2/5] decodetree: Fix empty input files for varinsnwidth |
Date: | Wed, 14 Apr 2021 12:47:54 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
On 4/13/21 2:11 PM, Luis Pires wrote:
Decodetree would throw an error when the input file was empty and --varinsnwidth was specified. Signed-off-by: Luis Pires<luis.pires@eldorado.org.br> --- scripts/decodetree.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
+ if self.width is not None: + if extracted < self.width:
Is it too ugly to use AND here? r~
[Prev in Thread] | Current Thread | [Next in Thread] |