fixing attempt: LLF size in src/adapters/EMGLLF seemed wrong
authorBenjamin Auder <benjamin.auder@somewhere>
Fri, 3 Nov 2017 08:19:52 +0000 (09:19 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Fri, 3 Nov 2017 08:19:52 +0000 (09:19 +0100)
TODO [new file with mode: 0644]
pkg/src/adapters/a.EMGLLF.c

diff --git a/TODO b/TODO
new file mode 100644 (file)
index 0000000..4feab94
--- /dev/null
+++ b/TODO
@@ -0,0 +1 @@
+Apply git-fat patch
index 1503315..e93b7ec 100644 (file)
@@ -56,7 +56,7 @@ SEXP EMGLLF(
        PROTECT(phi = allocArray(REALSXP, dimPhiS));
        PROTECT(rho = allocArray(REALSXP, dimRho));
        PROTECT(pi = allocVector(REALSXP, k));
-       PROTECT(LLF = allocVector(REALSXP, maxi-mini+1));
+       PROTECT(LLF = allocVector(REALSXP, maxi));
        PROTECT(S = allocArray(REALSXP, dimPhiS));
        PROTECT(affec = allocVector(INTSXP, n));
        double *pPhi=REAL(phi), *pRho=REAL(rho), *pPi=REAL(pi), *pLLF=REAL(LLF), *pS=REAL(S);