mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Cleaned up integer type usage in wpilibc (#92)
Replaced all unsigned types to signed and int32_t with int in wpilibc
This commit is contained in:
committed by
Peter Johnson
parent
ff93050b31
commit
0cd05d1a42
@@ -48,7 +48,7 @@ Java_edu_wpi_first_wpilibj_can_CANJNI_FRCNetCommCANSessionMuxSendMessage(
|
||||
if (dataBuffer) {
|
||||
std::ostringstream str;
|
||||
str << std::setfill('0') << std::hex;
|
||||
for (int i = 0; i < dataSize; i++) {
|
||||
for (int32_t i = 0; i < dataSize; i++) {
|
||||
str << std::setw(2) << (int)dataBuffer[i] << ' ';
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ Java_edu_wpi_first_wpilibj_can_CANJNI_FRCNetCommCANSessionMuxReceiveMessage(
|
||||
if (logDEBUG <= canJNILogLevel) {
|
||||
std::ostringstream str;
|
||||
str << std::setfill('0') << std::hex;
|
||||
for (int i = 0; i < dataSize; i++) {
|
||||
for (int32_t i = 0; i < dataSize; i++) {
|
||||
str << std::setw(2) << (int)buffer[i] << ' ';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user