Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Dec 29, 2023
1 parent 6877c2c commit 642c043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpimath/src/test/quick_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main(int arc, char** argv) {
return 3;
}

if (wpi::proto::_ProtobufDCMotor_default_instance_._instance.nominal_voltage() != 0) {
if (reinterpret_cast<wpi::proto::ProtobufDCMotor*>(&wpi::proto::_ProtobufDCMotor_default_instance_)->nominal_voltage() != 0) {
return 4;
}

Expand Down

0 comments on commit 642c043

Please sign in to comment.