-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit a5b8e43
committed
Fix format specifier for printing CAN message ID in CanMsg.h.
Regarding the X format specifier: C standard §7.21.6.1: "The unsigned int
argument is converted to ..." On some platforms (e.g. mbed_nano), uint32_t,
which is what's being printed here, is an unsigned long int, so this code causes
a compiler warning. The fix is to use the format specifiers from §7.8.1,
specifically PRIX32.1 parent 50a27fb commit a5b8e43
1 file changed
+2
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | - | ||
15 | + | ||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 | - | ||
71 | + | ||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
|
0 commit comments