summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-02-06 23:04:58 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-02-06 23:04:58 +0300
commit91f8aa7118f4c4386d142b3de165bed293dabb6b (patch)
tree1c69678c92aef23a0b4c663945f4cf55c85af369
parent4d7e680cb015e5d77764ff1cc83a417ecb73e31b (diff)
downloadnasm-91f8aa7118f4c4386d142b3de165bed293dabb6b.tar.gz
iflag: Fix iflag_cmp_cpu_level
In commit a8f3698cf31a9379cf85416c6cb40c3340e90adb the iflag_cmp_cpu_level escaped updating. Fix it. Reported-by: Tomasz Kantecki <tomasz.kantecki@intel.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--include/iflag.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/iflag.h b/include/iflag.h
index 02787de9..1cef9b64 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;