Commit e77217c
authored
Fix #382: [-Wsign-compare]
comparison between signed and unsigned integer expressions
Use uint32_t to store timestamp instead of int32_t.
Adjust comparison to use timestamp as a zero-basis.
This also avoids a bugs where a record that is added just before millis() overflows would never be removed from the list.1 parent 3a54ca3 commit e77217c
File tree
1 file changed
+5
-5
lines changed- libraries/Bluefruit52Lib/examples/Projects/rssi_proximity/rssi_proximity_central
1 file changed
+5
-5
lines changedLines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| |||
0 commit comments