[yoda-svn] r520 - trunk/include/YODA

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Aug 6 14:23:48 BST 2012


Author: dgrell
Date: Mon Aug  6 14:23:48 2012
New Revision: 520

Log:
Fixed broken addition and subtraction

Modified:
   trunk/include/YODA/HistoBin1D.h

Modified: trunk/include/YODA/HistoBin1D.h
==============================================================================
--- trunk/include/YODA/HistoBin1D.h	Mon Aug  6 14:01:03 2012	(r519)
+++ trunk/include/YODA/HistoBin1D.h	Mon Aug  6 14:23:48 2012	(r520)
@@ -151,14 +151,14 @@
   /// Add two bins
   inline HistoBin1D operator + (const HistoBin1D& a, const HistoBin1D& b) {
     HistoBin1D rtn(a);
-    rtn += a;
+    rtn += b;
     return rtn;
   }
 
   /// Subtract two bins
   inline HistoBin1D operator - (const HistoBin1D& a, const HistoBin1D& b) {
     HistoBin1D rtn(a);
-    rtn -= a;
+    rtn -= b;
     return rtn;
   }
 


More information about the yoda-svn mailing list