We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 950e0dd commit 770a284Copy full SHA for 770a284
root/io/cpp11Containers/commonUtils.h
@@ -198,11 +198,11 @@ bool IsSame<>(const TH1F& a, const TH1F& b){
198
if (gVerboseComparison) std::cout << "The # of bins of the histograms differ: " << nbinsa << " " << nbinsb << std::endl;
199
return false;
200
}
201
- const auto AreBitwiseEqual = [](auto a, auto b) {
202
- ULong64_t la, lb;
203
- memcpy(&la, &a, sizeof(a));
204
- memcpy(&lb, &b, sizeof(b));
205
- return la == lb;
+ const auto AreBitwiseEqual = [](auto x, auto y) {
+ ULong64_t lx, ly;
+ memcpy(&lx, &x, sizeof(x));
+ memcpy(&ly, &y, sizeof(y));
+ return lx == ly;
206
};
207
for (int i=0;i<a.GetNbinsX();++i) {
208
auto binca = a.GetBinContent(i);
0 commit comments