mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Maybe fix assertion crash.
git-svn-id: svn://localhost/ardour2/branches/3.0@5031 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8491953e20
commit
b034d9d05a
1 changed files with 2 additions and 1 deletions
|
|
@ -17,6 +17,7 @@
|
|||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
#include "evoral/Note.hpp"
|
||||
|
||||
namespace Evoral {
|
||||
|
|
@ -38,7 +39,7 @@ Note<Time>::Note(uint8_t chan, Time t, Time l, uint8_t n, uint8_t v)
|
|||
_off_event.buffer()[2] = 0x40;
|
||||
|
||||
assert(time() == t);
|
||||
assert(length() == l);
|
||||
assert(length() - l <= std::numeric_limits<Time>::epsilon());
|
||||
assert(note() == n);
|
||||
assert(velocity() == v);
|
||||
assert(_on_event.channel() == _off_event.channel());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue