Import Geant4 11.1.1 source tree
This commit is contained in:
@@ -6,6 +6,10 @@ It must **not** be used as a substitute for writing good git commit messages!
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
## 2022-12-20 Ivana Hrivnacova (geom-bool-V11-00-08)
|
||||
- Fixed hang-out in G4MultiUnion, caused by oveflow of 'size-1' when 'size' value is zero
|
||||
after changing G4int type to size_t
|
||||
|
||||
## 2022-11-10 Gabriele Cosmo (geom-bool-V11-00-07)
|
||||
- Fixed compilation warnings for implicit type conversions on macOS/XCode 14.1.
|
||||
|
||||
|
||||
@@ -480,6 +480,12 @@ EInside G4MultiUnion::InsideWithExclusion(const G4ThreeVector& aPoint,
|
||||
// located around will correspond to kInside (cf. G4UnionSolid)
|
||||
|
||||
std::size_t size = surfaces.size();
|
||||
|
||||
if (size == 0)
|
||||
{
|
||||
return EInside::kOutside;
|
||||
}
|
||||
|
||||
for (std::size_t i = 0; i < size - 1; ++i)
|
||||
{
|
||||
G4MultiUnionSurface& left = surfaces[i];
|
||||
@@ -494,9 +500,7 @@ EInside G4MultiUnion::InsideWithExclusion(const G4ThreeVector& aPoint,
|
||||
}
|
||||
}
|
||||
|
||||
location = size ? EInside::kSurface : EInside::kOutside;
|
||||
|
||||
return location;
|
||||
return EInside::kSurface;
|
||||
}
|
||||
|
||||
//______________________________________________________________________________
|
||||
|
||||
Reference in New Issue
Block a user