Commit 7c990c4
committed
Fix compilation warning.
size_t is unsigned; the #defined constant was treated as an integer,
which caused the following warning:
In file included from cores\nRF5\Uart.cpp:21:0:
cores\nRF5\Arduino.h: In instantiation of
```C++
decltype ( ((b < a) ? b : a) )
min(const T&, const L&)
[with
T = unsigned int;
L = int;
decltype (((b < a) ? b : a)) = unsigned int
]:
```
cores\nRF5\Uart.cpp:228:54: required from here
cores\nRF5\Arduino.h:92:15: warning:
comparison between signed and unsigned integer expressions [-Wsign-compare]
return (b < a) ? b : a;1 parent 1cb51ff commit 7c990c4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
0 commit comments