Skip to content

Commit a105dcf

Browse files
committed
fix: resolves #646 for euler sums without arguments.
1 parent f63dcf4 commit a105dcf

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

check/fixes.frm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3925,6 +3925,16 @@ Print;
39253925
assert succeeded?
39263926
assert result("F") =~ expr("0")
39273927
*--#] Issue642 :
3928+
*--#[ Issue646 :
3929+
#StartFloat 30
3930+
Local F = mzv_+euler_+mzvhalf_;
3931+
Evaluate;
3932+
Print;
3933+
.end
3934+
#pend_if wordsize == 2
3935+
assert succeeded?
3936+
assert result("F") =~ expr("mzv_ + euler_ + mzvhalf_")
3937+
*--#] Issue646 :
39283938
*--#[ Issue695_1 :
39293939
#StartFloat 20
39303940
CFunction f;

sources/float.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,6 +2343,8 @@ int EvaluateEuler(PHEAD WORD *term, WORD level, WORD par)
23432343
sumweight += ABS(tt[1]); depth++;
23442344
tt += 2;
23452345
}
2346+
/* euler sum without arguments, i.e. mzv_(), euler_() or mzvhalf_() */
2347+
if ( depth == 0) goto nextfun;
23462348
if ( sumweight > AC.MaxWeight ) {
23472349
MesPrint("Error: Weight of Euler/MZV sum greater than %d",sumweight);
23482350
MesPrint("Please increase MaxWeight in form.set.");

0 commit comments

Comments
 (0)