use signed ints for STD C++17

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

View File

@ -15,7 +15,7 @@
auto exe_policy = std::execution::par_unseq;
template <class T>
STDStream<T>::STDStream(const unsigned int ARRAY_SIZE, int device)
STDStream<T>::STDStream(const int ARRAY_SIZE, int device)
noexcept : array_size{ARRAY_SIZE}, a{new T[array_size]}, b{new T[array_size]}, c{new T[array_size]}
{
}

View File

@ -16,7 +16,7 @@ class STDStream : public Stream<T>
{
protected:
// Size of arrays
unsigned int array_size;
int array_size;
// Device side pointers
T *a;
@ -24,7 +24,7 @@ class STDStream : public Stream<T>
T *c;
public:
STDStream(const unsigned int, int);
STDStream(const int, int);
~STDStream();
virtual void copy() override;