fix invalid casts in prev commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@13775 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
bb3690db58
commit
4acd9285bf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user