fix(command): ensure min comparison between uint32_t

This commit is contained in:
phaneron 2023-08-14 23:17:43 -04:00
parent 160110674e
commit 7bb446255b

View file

@ -132,7 +132,7 @@ static void ConvertNumber(CMDDEF* ptr, const char* string, int32_t* datachars) {
}
if (ptr->variableptr) {
memcpy(ptr->variableptr, &ptr->currvaluestr, std::min(sizeof(ptr->currvalue), ptr->variablebytes));
memcpy(ptr->variableptr, &ptr->currvaluestr, std::min(static_cast<uint32_t>(sizeof(ptr->currvalue)), ptr->variablebytes));
}
}