mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/uuid: fix signedness warning
This commit is contained in:
parent
00cc9c9f7a
commit
ef154aaaba
@ -39,7 +39,7 @@ void uuid_custom(void *buf, size_t len, int gen)
|
||||
{
|
||||
uuid_base(buf, len);
|
||||
|
||||
for (int i = 0; i < sizeof(gen); i++) {
|
||||
for (size_t i = 0; i < sizeof(gen); i++) {
|
||||
((uint8_t *)buf)[i % len] ^= ((gen >> (i * 8)) & 0xff);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user