1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../rezound/gcc-4.0-64.patch
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Gcc-4.0 does not like loosing precision in pointer casts.
19 - Rene Rebe <rene@exactcode.de>
21 --- rezound-0.12.2beta/src/frontend_fox/CPasteChannelsDialog.cpp.vanilla 2005-10-28 12:01:58.000000000 +0200
22 +++ rezound-0.12.2beta/src/frontend_fox/CPasteChannelsDialog.cpp 2005-10-28 12:03:12.000000000 +0200
25 pasteChannels.clear();
27 - actionParameters->setValue<unsigned>(_("MixMethod"),(unsigned)(mixTypeComboBox->getItemData(mixTypeComboBox->getCurrentItem())));
28 + actionParameters->setValue<unsigned>(_("MixMethod"),(long)(mixTypeComboBox->getItemData(mixTypeComboBox->getCurrentItem())));
30 if(repeatTypeComboBox->getCurrentItem()==0)
31 { // repeating it a given number of times
32 --- rezound-0.12.2beta/src/frontend_fox/CMainWindow.cpp.vanilla 2005-10-28 11:55:32.000000000 +0200
33 +++ rezound-0.12.2beta/src/frontend_fox/CMainWindow.cpp 2005-10-28 12:01:13.000000000 +0200
36 long CMainWindow::onSoundListChange(FXObject *sender,FXSelector sel,void *ptr)
38 - FXint index=(FXint)ptr;
39 + FXint index=(long)ptr;
41 if(index>=0 && index<soundList->getNumItems())
43 @@ -1836,13 +1836,13 @@
45 if(pos==0 && FXSELID(sel)==ID_SHUTTLE_BACKWARD)
47 - if((unsigned)ptr > 1/*came from keyboard event*/) enableAutoRepeat(getApp()->getDisplay(),false); // QQQ
48 + if((long)ptr > 1/*came from keyboard event*/) enableAutoRepeat(getApp()->getDisplay(),false); // QQQ
49 shuttleDial->setValue(pos-inc);
50 onShuttleChange(sender,sel,ptr);
52 else if(pos==0 && FXSELID(sel)==ID_SHUTTLE_FORWARD)
54 - if((unsigned)ptr > 1/*came from keyboard event*/) enableAutoRepeat(getApp()->getDisplay(),false); // QQQ
55 + if((long)ptr > 1/*came from keyboard event*/) enableAutoRepeat(getApp()->getDisplay(),false); // QQQ
56 shuttleDial->setValue(pos+inc);
57 onShuttleChange(sender,sel,ptr);
59 --- rezound-0.12.2beta/src/frontend_fox/COggDialog.cpp.vanilla 2005-10-28 12:04:39.000000000 +0200
60 +++ rezound-0.12.2beta/src/frontend_fox/COggDialog.cpp 2005-10-28 12:04:44.000000000 +0200
63 long COggDialog::onRadioButton(FXObject *sender,FXSelector sel,void *ptr)
65 - if((int)ptr==0) // only act when ptr==1 when it's getting checked
66 + if((long)ptr==0) // only act when ptr==1 when it's getting checked
69 // turn off all buttons
70 --- rezound-0.12.2beta/src/frontend_fox/CMp3Dialog.cpp.vanilla 2005-10-28 12:05:01.000000000 +0200
71 +++ rezound-0.12.2beta/src/frontend_fox/CMp3Dialog.cpp 2005-10-28 12:05:05.000000000 +0200
74 long CMp3Dialog::onRadioButton(FXObject *sender,FXSelector sel,void *ptr)
76 - if((int)ptr==0) // only act when ptr==1 when it's getting checked
77 + if((long)ptr==0) // only act when ptr==1 when it's getting checked
80 // turn off all buttons