aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-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;
}