Skip to content

Commit 4cf1152

Browse files
committed
fix: made a bugfix for binary alarm.
1 parent 8033935 commit 4cf1152

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/alfred/data_structure/binary-alarm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct BinaryAlarm {
4545
}
4646
}
4747
inline int monitor(const std::vector<int> &pos, T v) {
48-
alm.emplace_back(V, v, T(0), pos);
48+
alm.emplace_back(V - 1, v, T(0), pos);
4949
const int id = alm.size() - 1;
5050
if (v != 0) {
5151
for (auto &p : pos) {

0 commit comments

Comments
 (0)