Skip to content
Snippets Groups Projects
Commit faab068e authored by Fons Rademakers's avatar Fons Rademakers
Browse files

Add some explicit casts to silence -Wconversion warnings.

git-svn-id: http://root.cern.ch/svn/root/trunk@49345 27541ba8-7e3a-0410-8455-c3a389f83636
parent 3633c708
Branches
Tags
No related merge requests found
...@@ -98,7 +98,7 @@ inline Bool_t TMath::Odd(Long_t a) ...@@ -98,7 +98,7 @@ inline Bool_t TMath::Odd(Long_t a)
//---- Abs --------------------------------------------------------------------- //---- Abs ---------------------------------------------------------------------
inline Short_t TMath::Abs(Short_t d) inline Short_t TMath::Abs(Short_t d)
{ return (d >= 0) ? d : -d; } { return (d >= 0) ? d : Short_t(-d); }
inline Int_t TMath::Abs(Int_t d) inline Int_t TMath::Abs(Int_t d)
{ return (d >= 0) ? d : -d; } { return (d >= 0) ? d : -d; }
...@@ -118,7 +118,7 @@ inline Double_t TMath::Abs(Double_t d) ...@@ -118,7 +118,7 @@ inline Double_t TMath::Abs(Double_t d)
//---- Sign -------------------------------------------------------------------- //---- Sign --------------------------------------------------------------------
inline Short_t TMath::Sign(Short_t a, Short_t b) inline Short_t TMath::Sign(Short_t a, Short_t b)
{ return (b >= 0) ? Abs(a) : -Abs(a); } { return (b >= 0) ? Abs(a) : Short_t(-Abs(a)); }
inline Int_t TMath::Sign(Int_t a, Int_t b) inline Int_t TMath::Sign(Int_t a, Int_t b)
{ return (b >= 0) ? Abs(a) : -Abs(a); } { return (b >= 0) ? Abs(a) : -Abs(a); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment