From b35978e1f3e78e8199181bb658548f520ba016c1 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Mon, 22 Feb 2021 00:59:28 +0100 Subject: [PATCH] I'm a total moron --- src/HttpParser.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/HttpParser.h b/src/HttpParser.h index ec18b18..8e33335 100644 --- a/src/HttpParser.h +++ b/src/HttpParser.h @@ -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 {