From: nasm-bot f. C. G. <gor...@gm...> - 2018-02-06 20:09:23
|
Commit-ID: 91f8aa7118f4c4386d142b3de165bed293dabb6b Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=91f8aa7118f4c4386d142b3de165bed293dabb6b Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Tue, 6 Feb 2018 23:04:58 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Tue, 6 Feb 2018 23:04:58 +0300 iflag: Fix iflag_cmp_cpu_level In commit a8f3698cf31a9379cf85416c6cb40c3340e90adb the iflag_cmp_cpu_level escaped updating. Fix it. Reported-by: Tomasz Kantecki <tom...@in...> Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- include/iflag.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/iflag.h b/include/iflag.h index 02787de..1cef9b6 100644 --- a/include/iflag.h +++ b/include/iflag.h @@ -131,9 +131,9 @@ static inline int iflag_cmp_cpu_level(const iflag_t *a, const iflag_t *b) iflag_clear(&v2, IF_CYRIX); iflag_clear(&v2, IF_AMD); - if (v1.field[3] < v2.field[3]) + if (v1.field[4] < v2.field[4]) return -1; - else if (v1.field[3] > v2.field[3]) + else if (v1.field[4] > v2.field[4]) return 1; return 0; |