mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Updated cpplint.py and fixed its regexes for C-style casts (#193)
Additional C-style cast warnings thrown were also fixed.
This commit is contained in:
committed by
Peter Johnson
parent
e8f1fdda44
commit
3819cd0768
@@ -93,7 +93,7 @@ Encoder::~Encoder() {
|
||||
|
||||
// CounterBase interface
|
||||
int32_t Encoder::Get(int32_t* status) const {
|
||||
return (int32_t)(GetRaw(status) * DecodingScaleFactor());
|
||||
return static_cast<int32_t>(GetRaw(status) * DecodingScaleFactor());
|
||||
}
|
||||
|
||||
int32_t Encoder::GetRaw(int32_t* status) const {
|
||||
|
||||
Reference in New Issue
Block a user