Skip to content

Commit dbcf787

Browse files
Oleksandr Motsakmohamed-barakat
authored andcommitted
FIX: another bug: DBTest/cfDBTest is available only if LDEBUG is defined
1 parent 50b874a commit dbcf787

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

libpolys/polys/ext_fields/algext.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#define naTest(a) naDBTest(a,__FILE__,__LINE__,cf)
5050
BOOLEAN naDBTest(number a, const char *f, const int l, const coeffs r);
5151
#else
52-
#define naTest(a)
52+
#define naTest(a) (TRUE)
5353
#endif
5454

5555
/// Our own type!
@@ -666,7 +666,9 @@ BOOLEAN naInitChar(coeffs cf, void * infoStruct)
666666
cf->cfRePart = naCopy;
667667
cf->cfImPart = naImPart;
668668
cf->cfCoeffWrite = naCoeffWrite;
669+
#ifdef LDEBUG
669670
cf->cfDBTest = naDBTest;
671+
#endif
670672
cf->cfGcd = naGcd;
671673
cf->cfLcm = naLcm;
672674
cf->cfSize = naSize;

libpolys/polys/ext_fields/transext.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
#define ntTest(a) ntDBTest(a,__FILE__,__LINE__,cf)
7676
BOOLEAN ntDBTest(number a, const char *f, const int l, const coeffs r);
7777
#else
78-
#define ntTest(a)
78+
#define ntTest(a) (TRUE)
7979
#endif
8080

8181
/// Our own type!
@@ -1109,7 +1109,9 @@ BOOLEAN ntInitChar(coeffs cf, void * infoStruct)
11091109
cf->cfRePart = ntCopy;
11101110
cf->cfImPart = ntImPart;
11111111
cf->cfCoeffWrite = ntCoeffWrite;
1112+
#ifdef LDEBUG
11121113
cf->cfDBTest = ntDBTest;
1114+
#endif
11131115
cf->cfGcd = ntGcd;
11141116
cf->cfLcm = ntLcm;
11151117
cf->cfSize = ntSize;

0 commit comments

Comments
 (0)