Fixed some warnings printed during wpilibC++Sim build

Change-Id: I11eea8a577af7c37c61978edd721ca16e4e41748
This commit is contained in:
Tyler Veness
2015-08-26 06:57:49 -07:00
committed by Brad Miller (WPI)
parent 771b5807f4
commit a7feaddd6b
10 changed files with 25 additions and 19 deletions

View File

@@ -30,7 +30,8 @@ AnalogOutput::AnalogOutput(uint32_t channel) {
return;
}
if (outputs->Allocate(channel, buf.str()) == ~0ul) {
if (outputs->Allocate(channel, buf.str()) ==
std::numeric_limits<uint32_t>::max()) {
CloneError(*outputs);
return;
}