]> www.ginac.de Git - ginac.git/blobdiff - check/exam_inifcns_nstdsums.cpp
[BUGFIX] Fix crash in parser.
[ginac.git] / check / exam_inifcns_nstdsums.cpp
index 86c6416bb97c4b7bd3b74eee80095fe5fc40ebf7..5b1baf6b37552561989a3bfb716228fad2ae7f45 100644 (file)
@@ -4,7 +4,7 @@
  *  functions. */
 
 /*
- *  GiNaC Copyright (C) 1999-2019 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2024 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -128,7 +128,8 @@ static unsigned inifcns_test_HLi()
        using GiNaC::log;
        int digitsbuf = Digits;
        Digits = 17;
-       ex prec = 5 * pow(10, -(ex)Digits);
+       // 15.01.2022: prec set to 10*pow(10,-Digits) to avoid exam failure in sporadic cases
+       ex prec = 10 * pow(10, -(ex)Digits);
        numeric almostone("0.999999999999999999");
        unsigned result = 0;