diff options
author | arved <arved@FreeBSD.org> | 2007-08-13 02:01:22 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2007-08-13 02:01:22 +0800 |
commit | fc9653fdc2101f8acd922abfaeb5355676cbc3ab (patch) | |
tree | 1cbcc41770959b3462b527813941f438f5286649 /audio | |
parent | 937f92fb81b17bb917019a94bf5e6571898e3f0a (diff) | |
download | freebsd-ports-gnome-fc9653fdc2101f8acd922abfaeb5355676cbc3ab.tar.gz freebsd-ports-gnome-fc9653fdc2101f8acd922abfaeb5355676cbc3ab.tar.zst freebsd-ports-gnome-fc9653fdc2101f8acd922abfaeb5355676cbc3ab.zip |
Fix build on 64bit platforms
Diffstat (limited to 'audio')
-rw-r--r-- | audio/cantus_3/files/patch-src::plugins::cantushashvalue.c | 29 | ||||
-rw-r--r-- | audio/cantus_3/files/patch-src::ui_gtk2::gui_preferences.cc | 11 |
2 files changed, 40 insertions, 0 deletions
diff --git a/audio/cantus_3/files/patch-src::plugins::cantushashvalue.c b/audio/cantus_3/files/patch-src::plugins::cantushashvalue.c new file mode 100644 index 000000000000..3fb93ad89ec8 --- /dev/null +++ b/audio/cantus_3/files/patch-src::plugins::cantushashvalue.c @@ -0,0 +1,29 @@ +--- src/plugins/cantushashvalue.c.orig 2007-08-03 14:31:22.000000000 +0200 ++++ src/plugins/cantushashvalue.c 2007-08-03 14:35:10.000000000 +0200 +@@ -81,7 +81,7 @@ + g_assert(hvalue != NULL); + switch (type) { + case G_TYPE_INT: +- value_set_int(hvalue, (gint)value); ++ value_set_int(hvalue, (gint64)value); + break; + + case G_TYPE_CHAR: +@@ -90,7 +90,7 @@ + break; + + case G_TYPE_BOOLEAN: +- value_set_bool(hvalue, (gboolean)value); ++ value_set_bool(hvalue, (gint64)value); + break; + + case G_TYPE_POINTER: +@@ -157,7 +157,7 @@ + if (hvalue->type != G_TYPE_BOOLEAN) + g_warning("G_TYPE_BOOLEAN value requested from non-G_TYPE_BOOLEAN" + " container.\n"); +- return (gboolean)hvalue->value; ++ return (gint64) hvalue->value; + } + + diff --git a/audio/cantus_3/files/patch-src::ui_gtk2::gui_preferences.cc b/audio/cantus_3/files/patch-src::ui_gtk2::gui_preferences.cc new file mode 100644 index 000000000000..4a84acb22721 --- /dev/null +++ b/audio/cantus_3/files/patch-src::ui_gtk2::gui_preferences.cc @@ -0,0 +1,11 @@ +--- src/ui-gtk2/gui_preferences.cc.orig 2007-08-12 19:50:46.000000000 +0200 ++++ src/ui-gtk2/gui_preferences.cc 2007-08-12 19:51:17.000000000 +0200 +@@ -81,7 +81,7 @@ + } + Gtk::CheckButton *check = dynamic_cast<Gtk::CheckButton*>(widget); + if (check) { +- check->set_active((gboolean)value); ++ check->set_active(value); + return TRUE; + } + return TRUE; |