summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/pbd/stateful.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/pbd/stateful.h b/libs/pbd/pbd/stateful.h
index 154e806644..4808bc2911 100644
--- a/libs/pbd/pbd/stateful.h
+++ b/libs/pbd/pbd/stateful.h
@@ -91,7 +91,7 @@ class Stateful {
virtual void suspend_property_changes ();
virtual void resume_property_changes ();
- bool property_changes_suspended() const { return g_atomic_int_get (&_stateful_frozen) > 0; }
+ bool property_changes_suspended() const { return g_atomic_int_get (const_cast<gint*>(&_stateful_frozen)) > 0; }
protected:
@@ -123,7 +123,7 @@ class Stateful {
private:
PBD::ID _id;
- int32_t _stateful_frozen;
+ gint _stateful_frozen;
};
} // namespace PBD