Skip to Content.
Sympa Menu

cgal-discuss - Assertion failure caused by MP_Float constructor

Subject: CGAL users discussion list

List archive

Assertion failure caused by MP_Float constructor


Chronological Thread 
  • From: "Stefan Uhrig" <>
  • To: <>
  • Subject: Assertion failure caused by MP_Float constructor
  • Date: Mon, 18 Jun 2007 10:50:13 +0200

Hi Everyone,

running the following code leads to an assertion failure on my machine:

#include <CGAL/basic.h>
#include <CGAL/MP_Float.h>

int main()
{
double d = 0.49999237058324297;
CGAL::MP_Float mpf(d);
}

I've tested the code with CGAL 3.2.1 and 3.3 under Windows XP with VS 2005.
There seems to be a problem with the conversion of the above value. Is there
a bug in MP_Float::construct_from_builtin_fp_type(T d) or have I done
something wrong?

Thanks,
Stefan




Archive powered by MHonArc 2.6.16.

Top of Page