From 3ea231124e44a3113fb4fbcb747bb8ce7d98786c Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 4 Nov 2023 23:55:13 -0700 Subject: [PATCH] [wpilibcExamples] Match array parameter bounds (#5880) Required by newer versions of clang. --- .../SwerveControllerCommand/cpp/subsystems/SwerveModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand/cpp/subsystems/SwerveModule.cpp b/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand/cpp/subsystems/SwerveModule.cpp index dc1cdb0bc4b..d565e84fbf0 100644 --- a/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand/cpp/subsystems/SwerveModule.cpp +++ b/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand/cpp/subsystems/SwerveModule.cpp @@ -11,8 +11,8 @@ #include "Constants.h" SwerveModule::SwerveModule(int driveMotorChannel, int turningMotorChannel, - const int driveEncoderPorts[], - const int turningEncoderPorts[], + const int driveEncoderPorts[2], + const int turningEncoderPorts[2], bool driveEncoderReversed, bool turningEncoderReversed) : m_driveMotor(driveMotorChannel),