use signed ints for STD C++20

This commit is contained in:
Tom Deakin 2021-01-12 10:22:53 +00:00
parent ecc47f5320
commit d01b46a87a
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
#include <ranges>
template <class T>
STD20Stream<T>::STD20Stream(const unsigned int ARRAY_SIZE, int device)
STD20Stream<T>::STD20Stream(const int ARRAY_SIZE, int device)
: array_size{ARRAY_SIZE}
{
a = std::vector<T>(array_size);

View File

@ -18,7 +18,7 @@ class STD20Stream : public Stream<T>
{
protected:
// Size of arrays
unsigned int array_size;
int array_size;
// Device side pointers
std::vector<T> a;
@ -26,7 +26,7 @@ class STD20Stream : public Stream<T>
std::vector<T> c;
public:
STD20Stream(const unsigned int, int);
STD20Stream(const int, int);
~STD20Stream() = default;
virtual void copy() override;