I'm a total moron

This commit is contained in:
Alex Hultman
2021-02-22 00:59:28 +01:00
parent 09aef610e0
commit b35978e1f3
+1 -3
View File
@@ -136,9 +136,7 @@ public:
currentParameters = parameters;
}
/* This one should take unsigned int, but really high numbers will
* overflow as int, so just accept int for now */
std::string_view getParameter(/*unsigned */int index) {
std::string_view getParameter(unsigned short index) {
if (currentParameters.first < (int) index) {
return {};
} else {