Ticket #14098: mpn_mulmid-test.c.patch

File mpn_mulmid-test.c.patch, 556 bytes (added by fbissey, 10 years ago)

patch added to zn_poly for review purposes

  • src/test/mpn_mulmid-test.c

    old new  
    121121   // now a few larger problems too
    122122   for (trial = 0; trial < (quick ? 100 : 3000) && success; trial++)
    123123   {
    124       n = random_ulong (3 * ZNP_mpn_smp_kara_thresh) + 2;
     124      if (ZNP_mpn_smp_kara_thresh == SIZE_MAX)
     125         n = random_ulong (100) + 2;
     126      else
     127         n = random_ulong (3 * ZNP_mpn_smp_kara_thresh) + 2;
    125128      success = success && testcase_mpn_smp_kara (n);
    126129   }
    127130