diff options
author | Robin Gareus <robin@gareus.org> | 2013-01-04 17:54:55 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-01-04 17:54:55 +0000 |
commit | 4acd9285bf7671dd576b84bacb278ce3402e2a60 (patch) | |
tree | 83457032aa6f1d2bf623cd6f27556966353dfb61 /gtk2_ardour/editor_drag.cc | |
parent | bb3690db586d092e70732d6546969a8828aadcfe (diff) |
fix invalid casts in prev commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@13775 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index de211cbd18..43fe62e780 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -1480,7 +1480,7 @@ RegionCreateDrag::motion (GdkEvent* event, bool first_move) place snapped notes at the start of the region. */ - framecnt_t const len = (int) fabs (f - grab_frame () - 1); + framecnt_t const len = (framecnt_t) fabs (f - grab_frame () - 1); _region->set_length (len < 1 ? 1 : len); } } @@ -4694,7 +4694,7 @@ NoteCreateDrag::finished (GdkEvent*, bool had_movement) } framepos_t const start = min (_note[0], _note[1]); - framecnt_t length = (int) fabs (_note[0] - _note[1]); + framecnt_t length = (framecnt_t) fabs (_note[0] - _note[1]); framecnt_t const g = grid_frames (start); double const one_tick = 1 / Timecode::BBT_Time::ticks_per_beat; |