Skip to content

Commit

Permalink
fix: several issues with --enable-assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmklee committed Oct 17, 2012
1 parent 7bd16d1 commit d5bfecf
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion factory/cf_gcd_smallp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4225,7 +4225,6 @@ Evaluation optimize4Lift (const CanonicalForm& F, CFMap & M,

Evaluation result= Evaluation (A.min(), A.max());
ASSERT (A.min() == 2, "expected A.min() == 2");
ASSERT (A.max() >= n, "expected A.max() >= n");
int max_deg;
int k= n;
int l= 1;
Expand Down
5 changes: 4 additions & 1 deletion factory/facFqBivarUtil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,10 @@ logarithmicDerivative (const CanonicalForm& F, const CanonicalForm& G, int l,
bufF -= Up;
}

q= newtonDiv (bufF, G, xToLOldL);
if (l-oldL > 0)
q= newtonDiv (bufF, G, xToLOldL);
else
q= 0;
q *= xToOldL;
q += oldQ;

Expand Down
1 change: 1 addition & 0 deletions factory/facFqSquarefree.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "assert.h"
#include "fac_sqrfree.h"
#include "cf_factory.h"

/// squarefree factorization over a finite field
/// @a return a list of squarefree factors with multiplicity
Expand Down
1 change: 0 additions & 1 deletion factory/fac_ezgcd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ Evaluation optimize4Lift (const CanonicalForm& F, CFMap & M,

Evaluation result= Evaluation (A.min(), A.max());
ASSERT (A.min() == 2, "expected A.min() == 2");
ASSERT (A.max() == n, "expected A.max() == n");
int max_deg;
int k= n;
int l= 1;
Expand Down
2 changes: 0 additions & 2 deletions factory/templates/ftmpl_array.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* emacs edit mode for this file is -*- C++ -*- */
/* $Id$ */

#include <factory/assert.h>

#include <factory/templates/ftmpl_array.h>

template <class T>
Expand Down
2 changes: 0 additions & 2 deletions factory/templates/ftmpl_list.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* emacs edit mode for this file is -*- C++ -*- */
/* $Id$ */

#include <factory/assert.h>

#include <factory/templates/ftmpl_list.h>

template <class T>
Expand Down
2 changes: 0 additions & 2 deletions factory/templates/ftmpl_matrix.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* emacs edit mode for this file is -*- C++ -*- */
/* $Id$ */

#include <factory/assert.h>

#include <factory/templates/ftmpl_matrix.h>

template <class T>
Expand Down

0 comments on commit d5bfecf

Please sign in to comment.