aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahmubashshir@gmail.com>2024-03-12 14:17:59 +0600
committerLibravatar Mubashshir <ahmubashshir@gmail.com>2024-03-12 14:17:59 +0600
commit8786be5724359614d3c3d26212e4d6b889e6b7ef (patch)
tree099ac3350ae7e0f099acb424887091048110f37f
parent6c2e211ae85d7de3d7f027e4aeaf382c34323097 (diff)
downloadentropy-calc-8786be5724359614d3c3d26212e4d6b889e6b7ef.tar.gz
entropy-calc-8786be5724359614d3c3d26212e4d6b889e6b7ef.zip
fix: Use matching type in loop counter
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index e9ebc81..4218ca2 100644
--- a/main.cpp
+++ b/main.cpp
@@ -9,7 +9,7 @@ int main()
{
vector<baseElement*> elements = getAllElements();
cout << "Choose an element: " << endl;
- for (int i = 0; i < elements.size(); i++) {
+ for (auto i = 0UL; i < elements.size(); i++) {
cout << i + 1 << ". " << elements[i]->getElementName() << endl;
}
int choice;