commit | 07adb6eb55c08b97d5ca8a1b0ffd2c04329b8296 | [log] [tgz] |
---|---|---|
author | graham sanderson <graham.sanderson@raspberrypi.com> | Fri Oct 22 16:39:59 2021 -0500 |
committer | graham sanderson <graham.sanderson@raspberrypi.com> | Fri Oct 22 16:39:59 2021 -0500 |
tree | ac00b06f03608c0e58c6f28f077e3adbe47862c3 | |
parent | faeb0ca490178bba5f5b28776e0968ade126ac33 [diff] |
bug in error case
diff --git a/main.cpp b/main.cpp index 0651b6f..fc3499d 100644 --- a/main.cpp +++ b/main.cpp
@@ -210,7 +210,7 @@ uint32_t next(uint32_t p) { auto f = m.upper_bound(p); if (f == m.end()) { - std::numeric_limits<uint32_t>::max(); + return std::numeric_limits<uint32_t>::max(); } return f->first; }