@@ -1,119 +0,0 @@
1−diff --git a/ATOOLS/Phys/Flavour.C b/ATOOLS/Phys/Flavour.C
2−index 1986348..740eea3 100644
3−--- a/ATOOLS/Phys/Flavour.C
4−+++ b/ATOOLS/Phys/Flavour.C
5−@@ -298,8 +298,8 @@ std::string Flavour::IDName() const
6−
7− bool Flavour::IsDiQuark() const
8− {
9−- if(abs(Kfcode())>=1103&&abs(Kfcode())<=5505) {
10−- double help=abs(Kfcode())/100.0-int(abs(Kfcode())/100.0);
11−+ if(abs((long)Kfcode())>=1103&&abs((long)Kfcode())<=5505) {
12−+ double help=abs((long)Kfcode())/100.0-int(abs((long)Kfcode())/100.0);
13− if(help<0.031) return true;
14− }
15− return false;
16−@@ -307,27 +307,27 @@ bool Flavour::IsDiQuark() const
17−
18− bool Flavour::IsBaryon() const
19− {
20−- if (abs(Kfcode())%10000<1000) return false;
21−+ if (abs((long)Kfcode())%10000<1000) return false;
22− return !IsDiQuark();
23− }
24−
25− bool Flavour::IsB_Hadron() const
26− {
27−- if (abs(Kfcode())<100) return 0;
28−+ if (abs((long)Kfcode())<100) return 0;
29− if (Kfcode()-100*int(Kfcode()/100)<10) return 0;
30−- if (abs((Kfcode()-100*int(Kfcode()/100))/10)==5) return 1;
31−- if (abs((Kfcode()-1000*int(Kfcode()/1000))/100)==5) return 1;
32−- if (abs((Kfcode()-10000*int(Kfcode()/10000))/1000)==5) return 1;
33−+ if (abs((long)(Kfcode()-100*int(Kfcode()/100))/10)==5) return 1;
34−+ if (abs((long)(Kfcode()-1000*int(Kfcode()/1000))/100)==5) return 1;
35−+ if (abs((long)(Kfcode()-10000*int(Kfcode()/10000))/1000)==5) return 1;
36− return 0;
37− }
38−
39− bool Flavour::IsC_Hadron() const
40− {
41−- if (abs(Kfcode())<100) return 0;
42−+ if (abs((long)Kfcode())<100) return 0;
43− if (Kfcode()-100*int(Kfcode()/100)<10) return 0;
44−- if (abs((Kfcode()-100*int(Kfcode()/100))/10)==4) return 1;
45−- if (abs((Kfcode()-1000*int(Kfcode()/1000))/100)==4) return 1;
46−- if (abs((Kfcode()-10000*int(Kfcode()/10000))/1000)==4) return 1;
47−+ if (abs((long)(Kfcode()-100*int(Kfcode()/100))/10)==4) return 1;
48−+ if (abs((long)(Kfcode()-1000*int(Kfcode()/1000))/100)==4) return 1;
49−+ if (abs((long)(Kfcode()-10000*int(Kfcode()/10000))/1000)==4) return 1;
50− return 0;
51− }
52−
53−diff --git a/AddOns/Pythia/Pythia_Jet_Criterion.C b/AddOns/Pythia/Pythia_Jet_Criterion.C
54−index bbe9597..c1201e1 100644
55−--- a/AddOns/Pythia/Pythia_Jet_Criterion.C
56−+++ b/AddOns/Pythia/Pythia_Jet_Criterion.C
57−@@ -117,8 +117,8 @@ namespace PYTHIA {
58− double Qsq = sign * Q.Abs2();
59− // Mass term of radiator
60− DEBUG_VAR(ampl->MS());
61−- double m2Rad = ( abs(RadAfterBranch.Flav().Kfcode()) >= 4
62−- && abs(RadAfterBranch.Flav().Kfcode()) < 7)
63−+ double m2Rad = ( abs((long)RadAfterBranch.Flav().Kfcode()) >= 4
64−+ && abs((long)RadAfterBranch.Flav().Kfcode()) < 7)
65− ? ampl->MS()->Mass2(RadAfterBranch.Flav())
66− : 0.;
67− // Construct 2->3 variables for FSR
68−diff --git a/BEAM/Main/EPA.C b/BEAM/Main/EPA.C
69−index 861a1b2..340ac33 100644
70−--- a/BEAM/Main/EPA.C
71−+++ b/BEAM/Main/EPA.C
72−@@ -54,7 +54,7 @@ double EPA::CosInt::GetCosInt(double X)
73−
74− double EPA::phi(double x, double qq)
75− {
76−- if (abs(m_beam.Kfcode()) == kf_p_plus) {
77−+ if (abs((long)m_beam.Kfcode()) == kf_p_plus) {
78− const double a = 7.16;
79− const double b = -3.96;
80− const double c = .028;
81−@@ -179,7 +179,7 @@ bool EPA::CalculateWeight(double x,double q2)
82− m_weight=0.0;
83− return 1;
84− }
85−- if (abs(m_beam.Kfcode()) == kf_e) {
86−+ if (abs((long)m_beam.Kfcode()) == kf_e) {
87− double f = alpha/M_PI*(1+sqr(1-m_x))/m_x*log(2.*m_energy/m_mass);
88− if (f < 0) f = 0.;
89− m_weight = f;
90−@@ -187,7 +187,7 @@ bool EPA::CalculateWeight(double x,double q2)
91− <<"energy = "<<m_energy<<", "<<"mass = "<<m_mass<<".\n";
92− return 1;
93− }
94−- else if (abs(m_beam.Kfcode()) == kf_p_plus) {
95−+ else if (abs((long)m_beam.Kfcode()) == kf_p_plus) {
96− const double qz = 0.71;
97− double f, qmi, qma;
98− qma=m_q2Max/qz;
99−diff --git a/PDF/Remnant/Hadron_Remnant.C b/PDF/Remnant/Hadron_Remnant.C
100−index 243717c..58c2278 100644
101−--- a/PDF/Remnant/Hadron_Remnant.C
102−+++ b/PDF/Remnant/Hadron_Remnant.C
103−@@ -188,13 +188,13 @@ ATOOLS::Flavour Hadron_Remnant::Opposite(ATOOLS::Flavour flav) const
104− if (m_constit[i]==flav && !found) found=true;
105− else rem[j++]=m_constit[i].Kfcode();
106− }
107−- Flavour anti=Flavour((kf_code)(abs(rem[0])*1000+abs(rem[1])*100+3));
108−+ Flavour anti=Flavour((kf_code)(abs((long)rem[0])*1000+abs((long)rem[1])*100+3));
109− if (rem[0]!=rem[1]) {
110− if (ran->Get()<0.25)
111−- anti=Flavour((kf_code)(abs(rem[0])*1000+abs(rem[1])*100+1));
112−+ anti=Flavour((kf_code)(abs((long)rem[0])*1000+abs((long)rem[1])*100+1));
113− }
114− else {
115−- anti=Flavour((kf_code)(abs(rem[0])*1100+3));
116−+ anti=Flavour((kf_code)(abs((long)rem[0])*1100+3));
117− }
118− if (flav.IsAnti()) anti=anti.Bar();
119− return anti;