[Blotter-commits] r1539 - pkg/blotter/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Oct 17 21:21:57 CEST 2013


Author: edd
Date: 2013-10-17 21:21:57 +0200 (Thu, 17 Oct 2013)
New Revision: 1539

Modified:
   pkg/blotter/src/calcPosAvgCost.c
Log:
copy and pasto fixed


Modified: pkg/blotter/src/calcPosAvgCost.c
===================================================================
--- pkg/blotter/src/calcPosAvgCost.c	2013-10-17 19:05:26 UTC (rev 1538)
+++ pkg/blotter/src/calcPosAvgCost.c	2013-10-17 19:21:57 UTC (rev 1539)
@@ -36,8 +36,8 @@
                 d_TxnValue[i]= -1.0 * d_TxnValue[i]; /* fix bug with negative average cost */
             d_PosAvgCost[i] = (d_PrevPosQty * d_PrevPosAvgCost * d_ConMult + d_TxnValue[i])/(d_PosQty[i]*d_ConMult);
         }
-        d_PrevPosQty <- d_PosQty[i];
-        d_PrevPosAvgCost <- d_PosAvgCost[i];
+        d_PrevPosQty = d_PosQty[i];
+        d_PrevPosAvgCost = d_PosAvgCost[i];
     }
     UNPROTECT(P);
     return(PosAvgCost);



More information about the Blotter-commits mailing list