diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-09-18 19:04:05 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-09-19 10:58:07 +0200 |
commit | 79c5a07b4d067c00fa5ad4decf1d269bae2cb72f (patch) | |
tree | edd1137e3bcead7949bf11099b47bdc1509337e7 /utils/regtools/qeditor/std_analysers.cpp | |
parent | 0c633db98017e3aa6eb6acac5dbb3a28ced6f020 (diff) | |
download | rockbox-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.cpp | 2 |
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); } |