Skip to content

Commit cb532c8

Browse files
committed
Fixed compilation error using Emscripten
1 parent b10f4d3 commit cb532c8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

intpolfact.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,9 @@ static void ComputeCoeffBounds(void)
11391139
// is a divisor of the original polynomial.
11401140
int findEasyFactors(int nbrFactors)
11411141
{
1142+
#ifdef __EMSCRIPTEN__
1143+
int maxAttempts;
1144+
#endif
11421145
int ctr1;
11431146
int currentAttempts;
11441147
int newNbrFactors;
@@ -1239,9 +1242,6 @@ static void vanHoeij(int prime, int numFactors)
12391242
int degreePolyToFactor = common.poly.polyNonRepeatedFactors[0];
12401243
int newNumberLength;
12411244
int newNbrFactors;
1242-
#ifdef __EMSCRIPTEN__
1243-
int maxAttempts;
1244-
#endif
12451245
double dExponDifference = 6.0 * (double)nbrFactors * LOG_2 / log((double)prime);
12461246
exponDifference = (int)dExponDifference;
12471247
numberLLL = 0;

0 commit comments

Comments
 (0)