Browse Source
Shift the sentinel value from the index (-1) to the best score (positive infinity). This ensures the index is always a valid container index, so there is no possibility of later accessing data using an index of -1. Reported by cppcheck. Signed-off-by: Robin Getz <rgetz503@gmail.com>chirpmodem-v8.0.0
2 changed files with 13 additions and 15 deletions
Loading…
Reference in new issue