mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Fixed some warnings printed during wpilibC++Sim build
Change-Id: I11eea8a577af7c37c61978edd721ca16e4e41748
This commit is contained in:
committed by
Brad Miller (WPI)
parent
771b5807f4
commit
a7feaddd6b
@@ -180,7 +180,8 @@ CANJaguar::CANJaguar(uint8_t deviceNumber)
|
||||
buf << "CANJaguar device number " << m_deviceNumber;
|
||||
Resource::CreateResourceObject(allocated, 63);
|
||||
|
||||
if (allocated->Allocate(m_deviceNumber - 1, buf.str()) == ~0ul) {
|
||||
if (allocated->Allocate(m_deviceNumber - 1, buf.str()) ==
|
||||
std::numeric_limits<uint32_t>::max()) {
|
||||
CloneError(*allocated);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user