aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-26 09:20:32 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-26 09:20:32 +0200
commit2952089a46478a1c8d0121a2a8ae818f299116f1 (patch)
treec5e45ac80460a273c17efdd40d0bf6e02c3c35b4
parentcf81a256ccb173cc0752f27ac99920cdc710c252 (diff)
Remove useless assignment
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index ddfad7b..7338443 100644
--- a/src/main.c
+++ b/src/main.c
@@ -188,8 +188,7 @@ bigendian(void)
uint16_t u16;
uint8_t u8[2];
} u = {
- .u16 = 0x0102,
+ .u16 = 0x0102U,
};
- u.u16 = 0x0102U;
return u.u8[0] == 1;
}