[SCM] calf/master: + GUI: 64-bit fixes

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:37:15 UTC 2013


The following commit has been merged in the master branch:
commit 089024ab3136589a2e39328da840082552fd9a63
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Thu May 29 18:30:37 2008 +0000

    + GUI: 64-bit fixes
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@191 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/custom_ctl.cpp b/src/custom_ctl.cpp
index 2df7357..0615706 100644
--- a/src/custom_ctl.cpp
+++ b/src/custom_ctl.cpp
@@ -155,7 +155,7 @@ calf_line_graph_get_type (void)
         GTypeInfo *type_info_copy = new GTypeInfo(type_info);
 
         for (int i = 0; ; i++) {
-            char *name = g_strdup_printf("CalfLineGraph%u%d", ((unsigned int)calf_line_graph_class_init) >> 16, i);
+            char *name = g_strdup_printf("CalfLineGraph%u%d", ((unsigned int)(intptr_t)calf_line_graph_class_init) >> 16, i);
             if (g_type_from_name(name)) {
                 free(name);
                 continue;
@@ -281,7 +281,7 @@ calf_vumeter_get_type (void)
         GTypeInfo *type_info_copy = new GTypeInfo(type_info);
 
         for (int i = 0; ; i++) {
-            char *name = g_strdup_printf("CalfVUMeter%u%d", ((unsigned int)calf_vumeter_class_init) >> 16, i);
+            char *name = g_strdup_printf("CalfVUMeter%u%d", ((unsigned int)(intptr_t)calf_vumeter_class_init) >> 16, i);
             if (g_type_from_name(name)) {
                 free(name);
                 continue;
@@ -525,7 +525,7 @@ calf_knob_get_type (void)
         
         for (int i = 0; ; i++) {
             char *name = g_strdup_printf("CalfKnob%u%d", 
-                ((unsigned int)calf_knob_class_init) >> 16, i);
+                ((unsigned int)(intptr_t)calf_knob_class_init) >> 16, i);
             if (g_type_from_name(name)) {
                 free(name);
                 continue;

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list