mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 836126: Use size_t instead of int for loop variable, in loop running from 0 to sizeof(something). r=ekr
This commit is contained in:
parent
4fb32645f1
commit
0b130466ed
@ -41,7 +41,7 @@ TemporaryRef<DtlsIdentity> DtlsIdentity::Generate() {
|
||||
|
||||
std::string name;
|
||||
char chunk[3];
|
||||
for (int i=0; i<sizeof(random_name); ++i) {
|
||||
for (size_t i = 0; i < sizeof(random_name); ++i) {
|
||||
PR_snprintf(chunk, sizeof(chunk), "%.2x", random_name[i]);
|
||||
name += chunk;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user