Skip to content

Commit 1aa7d03

Browse files
committed
Hardcode array sizes to 1000
1 parent 1cbcf8f commit 1aa7d03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wpimath/src/test/native/cpp/TimeTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ void ProcessDurations(const wpi::array<units::nanosecond_t, N>& durations,
9696
wpi::print("{}Last 10: {}\n", prefix, buffer);
9797
std::fflush(stdout);
9898

99-
wpi::array<units::nanosecond_t, N> array_a(wpi::empty_array);
100-
for (size_t i = 0; i < N; ++i) {
99+
wpi::array<units::nanosecond_t, 1000> array_a(wpi::empty_array);
100+
for (size_t i = 0; i < 1000; ++i) {
101101
array_a[i] = 0_ns;
102102
}
103103

104-
[[ maybe_unused ]] std::array<units::nanosecond_t, N> array_b{array_a};
104+
[[ maybe_unused ]] std::array<units::nanosecond_t, 1000> array_b{array_a};
105105

106106
wpi::print("{}\n", array_b[0]);
107107
}

0 commit comments

Comments
 (0)