From 058deb59eae2806eba11574a425e723dbd7c5320 Mon Sep 17 00:00:00 2001
From: Emilio <Emilio.Meschi@cern.ch>
Date: Tue, 25 Oct 2022 18:36:56 +0200
Subject: [PATCH] removed some compilation warning

---
 src/elastico.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/elastico.cc b/src/elastico.cc
index ba05565f..dd567008 100644
--- a/src/elastico.cc
+++ b/src/elastico.cc
@@ -119,18 +119,18 @@ void ElasticProcessor::makeAppendToBulkRequest(
     uint32_t qual = (mf >> shifts::qual) & masks::qual;
     if (qual < qual_cut)
       continue;
-    float pt = (ipt - 1) * gmt_scales::pt_scale;
+    float pt = float(ipt - 1) * gmt_scales::pt_scale;
     float phiext =
-        ((mf >> shifts::phiext) & masks::phiext) * gmt_scales::phi_scale;
+        float((mf >> shifts::phiext) & masks::phiext) * gmt_scales::phi_scale;
     uint32_t ietaext = ((mf >> shifts::etaext) & masks::etaextv);
     if (((mf >> shifts::etaext) & masks::etaexts) != 0)
       ietaext -= 512;
-    float etaext = ietaext * gmt_scales::eta_scale;
+    float etaext = float(ietaext) * gmt_scales::eta_scale;
     uint32_t iso = (ms >> shifts::iso) & masks::iso;
     uint32_t chrg = (ms >> shifts::chrg) & masks::chrg;
     uint32_t chrgv = (ms >> shifts::chrgv) & masks::chrgv;
     uint32_t index = (ms >> shifts::index) & masks::index;
-    float phi = ((ms >> shifts::phi) & masks::phi) * gmt_scales::phi_scale;
+    float phi = float((ms >> shifts::phi) & masks::phi) * gmt_scales::phi_scale;
     //  uint32_t ieta = (ms >> shifts::eta) & masks::etav;
     //    if(((mf >> shifts::eta) & masks::etas)!=0) ieta -= 512;
     // float eta = ieta*gmt_scales::eta_scale;
-- 
GitLab