[beast] BSE: use ptrdiff_t to convert between pointer and int
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast] BSE: use ptrdiff_t to convert between pointer and int
- Date: Mon, 1 Aug 2011 16:17:02 +0000 (UTC)
commit e7f627607e3df2f497a43122e2a63b179fe2d43f
Author: Tim Janik <timj gtk org>
Date: Mon Aug 1 18:13:26 2011 +0200
BSE: use ptrdiff_t to convert between pointer and int
bse/bseladspamodule.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bse/bseladspamodule.cc b/bse/bseladspamodule.cc
index 3e906e7..01a26c9 100644
--- a/bse/bseladspamodule.cc
+++ b/bse/bseladspamodule.cc
@@ -323,7 +323,7 @@ ladspa_derived_get_property (GObject *object,
BseLadspaModuleClass *klass = BSE_LADSPA_MODULE_GET_CLASS (self);
uint i = param_id - 1;
if (i >= klass->bli->n_cports)
- i = (unsigned long) g_param_spec_get_qdata (pspec, quark_value_index);
+ i = (ptrdiff_t) g_param_spec_get_qdata (pspec, quark_value_index);
ladspa_value_set_float (self, value, klass->bli->cports + i, self->cvalues[i]);
}
@@ -360,7 +360,7 @@ ladspa_derived_set_property (GObject *object,
/* store value */
uint i = param_id - 1;
if (i >= klass->bli->n_cports)
- i = (unsigned long) g_param_spec_get_qdata (pspec, quark_value_index);
+ i = (ptrdiff_t) g_param_spec_get_qdata (pspec, quark_value_index);
self->cvalues[i] = ladspa_value_get_float (self, value, klass->bli->cports + i);
if (pspec2)
g_object_notify (object, pspec2->name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]