mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix warning for comparing int with sizeof.
This commit is contained in:
parent
26284e368f
commit
0227e44ef0
4 changed files with 6 additions and 6 deletions
|
@ -184,7 +184,7 @@ srs_error_t SrsLatestVersion::start()
|
|||
|
||||
for (int i = 0; i < 16; i++) {
|
||||
int r0 = snprintf(buf + i * 2, sizeof(buf) - i * 2, "%02x", uuid[i]);
|
||||
srs_assert(r0 > 0 && r0 < sizeof(buf) - i * 2);
|
||||
srs_assert(r0 > 0 && r0 < (int)sizeof(buf) - i * 2);
|
||||
}
|
||||
server_id_ = buf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue