diff main/MainWindow.cpp @ 1754:076aca59192f

Use undefined behaviour sanitiser in debug mode
author Chris Cannam
date Thu, 07 Dec 2017 13:34:23 +0000
parents 81c28e5bc144
children 893f556cd5c9
line wrap: on
line diff
--- a/main/MainWindow.cpp	Tue Dec 05 14:29:23 2017 +0000
+++ b/main/MainWindow.cpp	Thu Dec 07 13:34:23 2017 +0000
@@ -4427,7 +4427,9 @@
             SparseTimeValueModel *tvm =
                 dynamic_cast<SparseTimeValueModel *>(model);
             if (tvm) {
-                SparseTimeValueModel::Point point(frame, ev.getPitch() % 12, "");
+                SparseTimeValueModel::Point point(frame,
+                                                  float(ev.getPitch() % 12),
+                                                  "");
                 SparseTimeValueModel::AddPointCommand *command =
                     new SparseTimeValueModel::AddPointCommand
                     (tvm, point, tr("Add Point"));