From 6209caf88b6fdc719ab0b0d16fbf404f9f470dbf Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Fri, 14 Jun 2024 08:45:51 +0200 Subject: [PATCH] return 0 in case of invalid detId, fixes cuda sign conversion warning --- .../PFRecHitProducer/plugins/alpaka/CalorimeterDefinitions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecoParticleFlow/PFRecHitProducer/plugins/alpaka/CalorimeterDefinitions.h b/RecoParticleFlow/PFRecHitProducer/plugins/alpaka/CalorimeterDefinitions.h index 58998bf72a54f..6615b4af8226b 100644 --- a/RecoParticleFlow/PFRecHitProducer/plugins/alpaka/CalorimeterDefinitions.h +++ b/RecoParticleFlow/PFRecHitProducer/plugins/alpaka/CalorimeterDefinitions.h @@ -105,7 +105,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE::particleFlowRecHitProducer { return detId2denseIdHE(detId); printf("invalid detId: %u\n", detId); - return -1; + return 0; } };