Skip to content

Commit 8d378c9

Browse files
committed
Fix indexing problem
1 parent acae7cf commit 8d378c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/rand_array.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static std::vector<T> get_array(std::string arrtype,
136136
else {
137137
val = std::numeric_limits<T>::max();
138138
}
139-
for (size_t ii = 1; ii <= arrsize; ++ii) {
139+
for (size_t ii = 0; ii < arrsize; ++ii) {
140140
if (rand() & 0x1) { arr[ii] = val; }
141141
}
142142
}

0 commit comments

Comments
 (0)