Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Bug in gmp header file
- Date: Thu, 13 Feb 2014 11:42:07 +0100
- Organization: GeometryFactory
Le Wednesday 12 February 2014 19:51:44 Marc Glisse a écrit :
> On Thu, 13 Feb 2014, Gopichand Paturi wrote:
> > I found a small bug in the header file gmp.h in line 2177.
> > (I have installed GMP&MPFR for using it them in CGAL)
> >
> > The bug being that negative value being assigned to unsigned type, though
> > this a subtle error I wanted to report it.
> >
> > Error: unary minus operator applied to unsigned type, result still
> > unsigned
> > This is what I got when I compiled my project.
>
> The code is right, the bug is that Microsoft gives a useless warning /
> error. If you want to fix something, disable that warning.
GMP developers could use explicit casting, to disable those warnings, instead
of implicit ones.
Such warnings are not generally useless. Well, generically, they are, but at
least in CGAL I remember that we have discovered one bug thanks to such a
warning (out of dozen of false-negative warnings).
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] Bug in gmp header file, Gopichand Paturi, 02/12/2014
- Re: [cgal-discuss] Bug in gmp header file, Marc Glisse, 02/12/2014
- Re: [cgal-discuss] Bug in gmp header file, Laurent Rineau (CGAL/GeometryFactory), 02/13/2014
- Re: [cgal-discuss] Bug in gmp header file, Marc Glisse, 02/13/2014
- Re: [cgal-discuss] Bug in gmp header file, Gopichand Paturi, 02/13/2014
- Re: [cgal-discuss] Bug in gmp header file, Marc Glisse, 02/13/2014
- Re: [cgal-discuss] Bug in gmp header file, Laurent Rineau (CGAL/GeometryFactory), 02/13/2014
- Re: [cgal-discuss] Bug in gmp header file, Marc Glisse, 02/12/2014
Archive powered by MHonArc 2.6.18.