Actually make it build, fix simple warning

This commit is contained in:
Alex Hultman
2019-04-16 17:13:10 +02:00
parent 799fe89a9b
commit 31574ec63a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ T cond_byte_swap(T value) {
uint8_t b[sizeof(T)];
} src = { value }, dst;
for (int i = 0; i < sizeof(value); i++) {
for (unsigned int i = 0; i < sizeof(value); i++) {
dst.b[i] = src.b[sizeof(value) - 1 - i];
}