use signed ints for HC

This commit is contained in:
Tom Deakin 2021-01-12 10:25:16 +00:00
parent 66aaec281f
commit 87ab797490
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ void listDevices(void)
template <class T>
HCStream<T>::HCStream(const unsigned int ARRAY_SIZE, const int device_index):
HCStream<T>::HCStream(const int ARRAY_SIZE, const int device_index):
array_size(ARRAY_SIZE),
d_a(ARRAY_SIZE),
d_b(ARRAY_SIZE),

View File

@ -21,7 +21,7 @@ class HCStream : public Stream<T>
{
protected:
// Size of arrays
unsigned int array_size;
int array_size;
// Device side pointers to arrays
hc::array<T,1> d_a;
hc::array<T,1> d_b;
@ -30,7 +30,7 @@ protected:
public:
HCStream(const unsigned int, const int);
HCStream(const int, const int);
~HCStream();
virtual void copy() override;