[beast: 2/4] BEAST: fix signed shifts



commit d9caa6a70a3f01c2789ad1842aefaeb03e4814e2
Author: Tim Janik <timj gnu org>
Date:   Wed Oct 26 01:51:09 2016 +0200

    BEAST: fix signed shifts
    
    Signed-off-by: Tim Janik <timj gnu org>

 beast-gtk/bsteventrollctrl.cc |    2 +-
 beast-gtk/bstpianorollctrl.cc |    2 +-
 beast-gtk/bsttrackrollctrl.cc |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/beast-gtk/bsteventrollctrl.cc b/beast-gtk/bsteventrollctrl.cc
index f6af656..c7d6ac2 100644
--- a/beast-gtk/bsteventrollctrl.cc
+++ b/beast-gtk/bsteventrollctrl.cc
@@ -5,7 +5,7 @@
 
 #define CONTROL_TYPE(erctrl)    ((erctrl)->eroll->control_type)
 #define QUANTIZATION(self)      ((self)->quant_rtools->action_id)
-#define HAVE_OBJECT             (1 << 31)
+#define HAVE_OBJECT             (unsigned (1) << 31)
 
 
 /* --- prototypes --- */
diff --git a/beast-gtk/bstpianorollctrl.cc b/beast-gtk/bstpianorollctrl.cc
index 2a94d54..92417e9 100644
--- a/beast-gtk/bstpianorollctrl.cc
+++ b/beast-gtk/bstpianorollctrl.cc
@@ -5,7 +5,7 @@
 
 #define NOTE_LENGTH(self)       ((self)->note_rtools->action_id)
 #define QUANTIZATION(self)      ((self)->quant_rtools->action_id)
-#define HAVE_OBJECT             (1 << 31)
+#define HAVE_OBJECT             (unsigned (1) << 31)
 
 
 /* --- prototypes --- */
diff --git a/beast-gtk/bsttrackrollctrl.cc b/beast-gtk/bsttrackrollctrl.cc
index f7358b4..37ed490 100644
--- a/beast-gtk/bsttrackrollctrl.cc
+++ b/beast-gtk/bsttrackrollctrl.cc
@@ -5,7 +5,7 @@
 
 
 #define QUANTIZATION(self)     ((self)->quant_rtools->action_id)
-#define        HAVE_OBJECT             (1 << 31)
+#define        HAVE_OBJECT             (unsigned (1) << 31)
 
 
 /* --- prototypes --- */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]