fix redrawing of canvas with an optimized build
[ardour.git] / libs / ardour / graph.cc
index 71eeee41eac8ecfc6e7faf5735e761411e4176b2..d183bcd7d271e41bcfa839dd3a4c4d281111e9d1 100644 (file)
@@ -223,7 +223,7 @@ Graph::trigger (GraphNode* n)
 void
 Graph::dec_ref()
 {
-        if (g_atomic_int_dec_and_test (&_finished_refcount)) {
+        if (g_atomic_int_dec_and_test (const_cast<gint*> (&_finished_refcount))) {
 
                /* We have run all the nodes that are at the `output' end of
                   the graph, so there is nothing more to do this time around.