diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-09-22 08:50:16 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-09-22 08:50:16 -0400 |
commit | f39bcaa4bfe0a6aed097f669f039ae2efcc2642f (patch) | |
tree | 1fa6993b75d6b0a16b805671d142907a80e8259c | |
parent | 62f29d6c440dee32e45f8ed2b75d87de30234342 (diff) |
Revert "MSVC complains because we're using 'fabs()' to compare 2 x integers"
You can't remove an abs() conversion and keep the same semantics.
This reverts commit d89b8cc0ad01eaf59dc605939628003dfa89899d.
-rw-r--r-- | libs/ardour/session_process.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index 720104c419..04f2d3f77e 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -1084,7 +1084,7 @@ Session::follow_transport_master (pframes_t nframes) if (transport_master_tracking_state == Running) { - if (!actively_recording() && delta > tmm.current()->resolution()) { + if (!actively_recording() && fabs (delta) > tmm.current()->resolution()) { DEBUG_TRACE (DEBUG::Slave, string_compose ("average slave delta %1 greater than slave resolution %2\n", delta, tmm.current()->resolution())); if (micro_locate (-delta) != 0) { DEBUG_TRACE (DEBUG::Slave, "micro-locate didn't work, set no disk output true\n"); |