Skip to content

Commit

Permalink
Merge pull request #35 from davidlt/IB/CMSSW_6_2_X/slc6_amd64_gcc472
Browse files Browse the repository at this point in the history
[IB/CMSSW_6_2_X/slc6_amd64_gcc472] Change WeightContainer::size_type to unsigned long long
  • Loading branch information
davidlt committed May 11, 2013
2 parents 35fc2f3 + 3376654 commit a068fe1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions hepmc-2.06.07-WeightContainer-fix-size_type.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/HepMC/WeightContainer.h b/HepMC/WeightContainer.h
index 980f75b..93f5e3b 100644
--- a/HepMC/WeightContainer.h
+++ b/HepMC/WeightContainer.h
@@ -31,7 +31,7 @@ namespace HepMC {

public:
/// defining the size type used by vector and map
- typedef std::size_t size_type;
+ typedef unsigned long long size_type;
/// iterator for the weight container
typedef std::vector<double>::iterator iterator;
/// const iterator for the weight container
2 changes: 2 additions & 0 deletions hepmc.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### RPM external hepmc 2.06.07
Source: http://lcgapp.cern.ch/project/simu/HepMC/download/HepMC-%realversion.tar.gz
Patch0: hepmc-2.03.06-reflex
Patch1: hepmc-2.06.07-WeightContainer-fix-size_type
Requires: autotools

%define keep_archives true
Expand All @@ -20,6 +21,7 @@ Requires: gfortran-macosx
%prep
%setup -q -n HepMC-%{realversion}
%patch0 -p0
%patch1 -p1

case %cmsplatf in
slc5_*_gcc4[01234]*)
Expand Down

0 comments on commit a068fe1

Please sign in to comment.