-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit ceee9e9
committed
Add print(signed char | short | float) explicitly
Add explicit print() support for signed char, unsigned/signed short, and float.
Also, add `signed` keyword explicitly to int and long (even if unnecessary).
Notice that `char` and `signed char` are considered different types,
even if their ranges are the same (ditto for `unsigned char` in SAM).
Both AVR and SAM seem to define [u]int8_t explicitly as [un]signed char
and not as char, so printing them will print them as numbers as expected.
(This does not apply to `int` and `signed int`; those are the same type.)1 parent d6058b9 commit ceee9e9
4 files changed
+14
-6
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 | - | ||
62 | + | ||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 | - | ||
60 | + | ||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 | + | ||
69 | + | ||
70 | + | ||
68 | 71 |
| |
69 | - | ||
72 | + | ||
70 | 73 |
| |
74 | + | ||
71 | 75 |
| |
72 | 76 |
| |
73 | 77 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 | - | ||
54 | + | ||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 | - | ||
60 | + | ||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 | + | ||
69 | + | ||
70 | + | ||
68 | 71 |
| |
69 | - | ||
72 | + | ||
70 | 73 |
| |
74 | + | ||
71 | 75 |
| |
72 | 76 |
| |
73 | 77 |
| |
|
0 commit comments