[rhythmbox] daap: fix compile errors on 32bit platforms
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] daap: fix compile errors on 32bit platforms
- Date: Mon, 18 Oct 2010 23:36:06 +0000 (UTC)
commit abf94bf5a55e64bef9d66d6155863c1911133338
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue Oct 19 09:35:14 2010 +1000
daap: fix compile errors on 32bit platforms
Cast the pointer value to gintptr, which is always the same size
as a pointer, and then let the compiler promote that to 64 bits if
necessary.
plugins/daap/rb-daap-record.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/daap/rb-daap-record.c b/plugins/daap/rb-daap-record.c
index fee6064..91cca4b 100644
--- a/plugins/daap/rb-daap-record.c
+++ b/plugins/daap/rb-daap-record.c
@@ -409,7 +409,7 @@ RBDAAPRecord *rb_daap_record_new (RhythmDBEntry *entry)
(entry, RHYTHMDB_PROP_ALBUM);
/* Since we don't support album id's on Rhythmbox, "emulate" it */
- record->priv->albumid = (gint64) rhythmdb_entry_get_refstring
+ record->priv->albumid = (gintptr) rhythmdb_entry_get_refstring
(entry, RHYTHMDB_PROP_ALBUM);
record->priv->genre = rhythmdb_entry_dup_string
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]