Browse Source

remove some warning

change_pipette_api
zhaohe 2 years ago
parent
commit
c8f8ad1cd5
  1. 4
      api/i_cmdparser.hpp

4
api/i_cmdparser.hpp

@ -42,7 +42,7 @@ class ICmdParserACK {
}
int32_t *getAck(int index) {
if (index < 0 || index >= sizeof(rawdata) / 4) {
if (index < 0 || index >= (int32_t)(sizeof(rawdata) / 4)) {
return nullptr;
}
return (int32_t *)rawdata + index;
@ -64,4 +64,4 @@ class ICmdParser {
virtual void regCMD(const char *cmdname, const char *helpinfo, int paraNum, ICmdFunction_t cmdimpl) = 0;
};
} // namespace iflytop
} // namespace iflytop
Loading…
Cancel
Save