summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/std_analysers.cpp
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-09-18 19:04:05 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-09-19 10:58:07 +0200
commit79c5a07b4d067c00fa5ad4decf1d269bae2cb72f (patch)
treeedd1137e3bcead7949bf11099b47bdc1509337e7 /utils/regtools/qeditor/std_analysers.cpp
parent0c633db98017e3aa6eb6acac5dbb3a28ced6f020 (diff)
downloadrockbox-79c5a07b4d067c00fa5ad4decf1d269bae2cb72f.tar.gz
rockbox-79c5a07b4d067c00fa5ad4decf1d269bae2cb72f.zip
qeditor: fix horrible out of bound bug
Change-Id: I1b34b1cd7be83d90e38559e386d0c6c64797b707 Reviewed-on: http://gerrit.rockbox.org/977 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'utils/regtools/qeditor/std_analysers.cpp')
-rw-r--r--utils/regtools/qeditor/std_analysers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/regtools/qeditor/std_analysers.cpp b/utils/regtools/qeditor/std_analysers.cpp
index 5847e39f7d..f278c2a526 100644
--- a/utils/regtools/qeditor/std_analysers.cpp
+++ b/utils/regtools/qeditor/std_analysers.cpp
@@ -468,7 +468,7 @@ void EmiAnalyser::FillTable()
ports.erase(ports.begin() + value / 6);
int ord[6][3] = { {0, 1, 2}, {2, 0, 1}, {1, 2, 0}, {2, 1, 0}, {1, 0, 2}, {0, 2, 1} };
for(int i = 0; i < 3; i++)
- order += ", " + ports[ord[value][i]];
+ order += ", " + ports[ord[value % 6][i]];
AddLine("Port Priority Order", value, "", order);
}