Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IB/CMSSW_6_2_X/slc6_amd64_gcc472] Change WeightContainer::size_type to unsigned long long #35

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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