1
0
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:
smlng 2017-02-02 16:43:12 +01:00
parent 00cc9c9f7a
commit ef154aaaba

View File

@ -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);
}
}