Skip to content

Commit

Permalink
LGTM fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
spond committed Dec 16, 2020
1 parent c2906f2 commit c79a7ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/likefunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3690,8 +3690,8 @@ void _LikelihoodFunction::SetupLFCaches (void) {
_AVLListX foundCharacters (&foundCharactersAux);
_String aState ((unsigned long)atomSize);

char const ** columnBlock = (char const**)alloca(atomSize*sizeof (const char*));
hyFloat * translationCache = (hyFloat*)alloca (sizeof (hyFloat)* stateSpaceDim);
char const ** columnBlock = (char const**)malloc(atomSize*sizeof (const char*));
hyFloat * translationCache = (hyFloat*)malloc (sizeof (hyFloat)* stateSpaceDim);
_Vector * ambigs = new _Vector();

for (unsigned long siteID = 0UL; siteID < patternCount; siteID ++) {
Expand Down Expand Up @@ -3726,7 +3726,7 @@ void _LikelihoodFunction::SetupLFCaches (void) {
conditionalTerminalNodeStateFlag [i][leafID*patternCount + siteID] = translation;
}
}
// free (columnBlock); free (translationCache);
free (columnBlock); free (translationCache);
conditionalTerminalNodeLikelihoodCaches < ambigs;
errorTolerance = MAX (1.,round (log (1.+maxFilterSize)/log (10)));
#ifdef MDSOCL
Expand Down
1 change: 0 additions & 1 deletion src/lib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from glob import glob
import sys

from platform import architecture, mac_ver

#incdir = get_python_inc(plat_specific=1)
#print incdir
Expand Down

0 comments on commit c79a7ad

Please sign in to comment.