mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
+ buf[1] += static_cast<char>(size);
- buf[1] += size; ~ Warning was triggered by 'size' being std::size_t and lossing data by implicit casting to a narrower type. This behavior seems correct, then we can explicit cast it.
This commit is contained in:
parent
dad25b0dab
commit
6aa5dba579
@ -194,7 +194,7 @@ namespace crow
|
||||
buf[0] += opcode;
|
||||
if (size < 126)
|
||||
{
|
||||
buf[1] += size;
|
||||
buf[1] += static_cast<char>(size);
|
||||
return {buf, buf+2};
|
||||
}
|
||||
else if (size < 0x10000)
|
||||
|
Loading…
Reference in New Issue
Block a user