@@ -17,10 +17,10 @@ slice struct
1717
1818struct vector_slice {
1919 Vector *vect;
20- uint16_t start, length;
20+ int start, length;
2121
2222 // constructor
23- vector_slice (uint16_t _start, uint16_t _length, Vector *_vect) : start(_start), length(_length), vect(_vect) {}
23+ vector_slice (int _start, int _length, Vector *_vect) : start(_start), length(_length), vect(_vect) {}
2424
2525 operator Vector () const ; // implicite comvertion
2626 vector_slice& operator =(Vector const & other); // assignment operators
@@ -29,10 +29,10 @@ struct vector_slice {
2929
3030struct matrix_slice {
3131 Matrix *mat;
32- uint16_t start_i, start_j, length_i, length_j;
32+ int start_i, start_j, length_i, length_j;
3333
3434 // constructor
35- matrix_slice (uint16_t _start_i, uint16_t _start_j, uint16_t _length_i, uint16_t _length_j, Matrix *_mat) : start_i(_start_i), start_j(_start_j), length_i(_length_i), length_j(_length_j), mat(_mat) {}
35+ matrix_slice (int _start_i, int _start_j, int _length_i, int _length_j, Matrix *_mat) : start_i(_start_i), start_j(_start_j), length_i(_length_i), length_j(_length_j), mat(_mat) {}
3636
3737 operator Matrix () const ; // implicite comvertion
3838 matrix_slice& operator =(Matrix const & other); // assignment operators
@@ -47,13 +47,13 @@ assignment struct
4747
4848struct bool_from_byte {
4949 uint8_t *byte;
50- uint16_t i;
50+ int i;
5151
5252 // util operations
5353 Utils* utils;
5454
5555 // constructor
56- bool_from_byte (int16_t _i, uint8_t *_byte) : i(_i), byte(_byte) {}
56+ bool_from_byte (int _i, uint8_t *_byte) : i(_i), byte(_byte) {}
5757
5858 operator bool () const ; // implicite comvertion
5959 bool_from_byte& operator =(bool value); // assignment operators
@@ -65,13 +65,13 @@ struct bool_from_byte {
6565
6666struct bool_from_word {
6767 uint64_t *word;
68- uint16_t i, j;
68+ int i, j;
6969
7070 // util operations
7171 Utils* utils;
7272
7373 // constructor
74- bool_from_word (int16_t _i, int16_t _j, uint64_t *_word) : i(_i), j(_j), word(_word) {}
74+ bool_from_word (int _i, int _j, uint64_t *_word) : i(_i), j(_j), word(_word) {}
7575
7676 operator bool () const ; // implicite comvertion
7777 bool_from_word& operator =(bool value); // assignment operators
@@ -121,15 +121,15 @@ class Matrix {
121121 uint64_t *blocks;
122122
123123 // Stupid way of accessing Matrix elements, only for testing or debugging !
124- bool_from_word operator ()(uint16_t i, uint16_t j) const ;
124+ bool_from_word operator ()(int i, int j) const ;
125125
126126 // size
127- const uint16_t height;
128- const uint16_t width;
127+ const int height;
128+ const int width;
129129
130130 // constructors
131- Matrix (uint16_t mat_height, uint16_t mat_width);
132- Matrix (uint16_t size);
131+ Matrix (int mat_height, int mat_width);
132+ Matrix (int size);
133133
134134 // destructor
135135 ~Matrix ();
@@ -234,13 +234,13 @@ class Vector {
234234 uint8_t *blocks;
235235
236236 // Stupid way of accessing vector elements, only for testing or debugging !
237- bool_from_byte operator [](uint16_t i) const ;
237+ bool_from_byte operator [](int i) const ;
238238
239239 // size
240- const uint16_t height;
240+ const int height;
241241
242242 // constructor
243- Vector (uint16_t size);
243+ Vector (int size);
244244
245245 // destructor
246246 ~Vector ();
0 commit comments