-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change WeightContainer::size_type to unsigned long long
Currently WeightContainer::size_type is set to std::size_t, which is a different type depending on platform. Change it to unsigned long long to make type cross-platofrm friendly. Solves issue with Reflex dictionary checksum. Signed-off-by: David Abdurachmanov <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters