mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
fix(command): ensure min comparison between uint32_t
This commit is contained in:
parent
160110674e
commit
7bb446255b
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue