aboutsummaryrefslogtreecommitdiff
path: root/src/stack.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-01-24 22:33:31 +0100
committerHampusM <hampus@hampusmat.com>2022-01-24 22:33:31 +0100
commit9f685c302a52f0801ca2f03fc03db3cae61ad3e9 (patch)
treebe8fa4549a887afb7ac914944bed630cca397b2c /src/stack.hpp
parentb8d9da4884a74008e0c70bc8d907df618fc6d998 (diff)
refactor: fix compiler warnings
Diffstat (limited to 'src/stack.hpp')
-rw-r--r--src/stack.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stack.hpp b/src/stack.hpp
index b156242..d5c1bdb 100644
--- a/src/stack.hpp
+++ b/src/stack.hpp
@@ -1,5 +1,4 @@
-#ifndef STACK_HPP
-#define STACK_HPP
+#pragma once
#include <vector>
@@ -15,7 +14,7 @@ public:
*
* @param capacity The capacity of the stack
*/
- Stack(int capacity);
+ Stack(unsigned long capacity);
/**
* Pushes a item onto the stack.
@@ -40,4 +39,3 @@ private:
#include "stack.tpp"
-#endif